]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 May 2017 15:21:07 +0000 (11:21 -0400)
commit1ee0437df9099aae2e1ba00c9893079ca85efe9b
tree7194dda3540597340c072a24d3ad14c89a9d7e34
parentb7c5b1602da47bdea03749357bfe19658eb4e290
sh_eth: Use platform device for printing before register_netdev()

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