]> asedeno.scripts.mit.edu Git - linux.git/commit
bgmac: simplify dma init/cleanup
authorFelix Fietkau <nbd@openwrt.org>
Tue, 14 Apr 2015 10:08:00 +0000 (12:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Apr 2015 18:57:11 +0000 (14:57 -0400)
commit74b6f29163490d88ff53f7c54d0e4514bbf1630b
tree7d9d981d6d5fa3ea6e89e7cd944adfd1d6627084
parentb9650557f3d58924e3be040df0ff7a3dae19ad83
bgmac: simplify dma init/cleanup

Instead of allocating buffers at device init time and initializing
descriptors at device open, do both at the same time (during open).
Free all buffers when closing the device.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Acked-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac.c