sh_eth: Use the platform device as the MDIO bus parent
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 20 Mar 2014 14:00:32 +0000 (15:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Mar 2014 21:22:08 +0000 (17:22 -0400)
commit3a0690fb88d5b5629ef4c4e267c1abb49a78ce63
treec2953e86803580c6bf0c8206aed65a3c5a119730
parent2a7825e92d40b12352ebf7761ebb9ebd0b9ad4ef
sh_eth: Use the platform device as the MDIO bus parent

The MDIO bus parent is set to the network device. Beside not reflecting
the hardware topology, this prevents registering the MDIO bus before
initializing the network device. Fix it by setting the MDIO bus parent
to 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>
drivers/net/ethernet/renesas/sh_eth.c