sh_eth: Register MDIO bus before registering the network device
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 20 Mar 2014 14:00:34 +0000 (15:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Mar 2014 21:22:10 +0000 (17:22 -0400)
commitdaacf03f0bbfefee3df107c3f7659d22e22538a7
tree68f9eec2713d14bf91ac4651288e7514d9234adc
parentbd920ff553ba17f19372501a14e432d9d92b102b
sh_eth: Register MDIO bus before registering the network device

Network API functions that rely on the MDIO bus can be called as soon as
the driver calls register_netdev(). Register the MDIO bus before the
network device to avoid race conditions.

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>
drivers/net/ethernet/renesas/sh_eth.c