sh_eth: Use platform device for printing before register_netdev()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 18 May 2017 13:01:34 +0000 (15:01 +0200)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:36:24 +0000 (21:36 -0400)
commiteb779330813fa27d803d3d3bb471129672eeefec
tree1aea76dc998dcd9718106322ea48e28286d1addd
parent17308dcf6471525f53ff59c68fcf097a39c2db81
sh_eth: Use platform device for printing before register_netdev()

[ Upstream commit 5f5c5449acad0cd3322e53e1ac68c044483b0aa5 ]

The MDIO initialization failure message is printed using the network
device, before it has been registered, leading to:

     (null): failed to initialise MDIO

Use the platform device instead to fix this:

    sh-eth ee700000.ethernet: failed to initialise MDIO

Fixes: daacf03f0bbfefee ("sh_eth: Register MDIO bus before registering the network device")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
drivers/net/ethernet/renesas/sh_eth.c