linux/drivers/net/ethernet/renesas
Laurent Pinchart aa8d422510 sh_eth: Use the platform device for memory allocation
Memory allocated for the MDIO bus with the devm_kzalloc() API is
associated with the network device. While this will cause memory to be
freed at the right time, it doesn't allow allocating memory before the
network device is initialized.

Replace the network device with the parent platform device for memory
allocation to remove that dependency. This also improves consistency
with the other devm_* calls in the driver that all use the platform
device.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-03-20 17:22:08 -04:00
..
Kconfig sh_eth: add R8A7791 support 2013-12-10 21:47:35 -05:00
Makefile
sh_eth.c sh_eth: Use the platform device for memory allocation 2014-03-20 17:22:08 -04:00
sh_eth.h sh_eth: use ETH_ZLEN instead of home-grown #define 2014-02-13 18:09:30 -05:00