mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 18:09:57 +00:00
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: daacf03f0b
("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>
This commit is contained in:
parent
b16c4c4839
commit
5f5c5449ac
1 changed files with 1 additions and 1 deletions
|
@ -3220,7 +3220,7 @@ static int sh_eth_drv_probe(struct platform_device *pdev)
|
|||
/* MDIO bus init */
|
||||
ret = sh_mdio_init(mdp, pd);
|
||||
if (ret) {
|
||||
dev_err(&ndev->dev, "failed to initialise MDIO\n");
|
||||
dev_err(&pdev->dev, "failed to initialise MDIO\n");
|
||||
goto out_release;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue