Commit f75f14ec authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by David S. Miller

sh_eth: convert pr_*() to netdev_*() calls

Convert pr_*() to netdev_*() calls as the latter provide info on a device.
Suggested-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 264be2f5
...@@ -400,7 +400,8 @@ static void sh_eth_select_mii(struct net_device *ndev) ...@@ -400,7 +400,8 @@ static void sh_eth_select_mii(struct net_device *ndev)
value = 0x0; value = 0x0;
break; break;
default: default:
pr_warn("PHY interface mode was not setup. Set to MII.\n"); netdev_warn(ndev,
"PHY interface mode was not setup. Set to MII.\n");
value = 0x1; value = 0x1;
break; break;
} }
...@@ -854,7 +855,7 @@ static int sh_eth_check_reset(struct net_device *ndev) ...@@ -854,7 +855,7 @@ static int sh_eth_check_reset(struct net_device *ndev)
cnt--; cnt--;
} }
if (cnt <= 0) { if (cnt <= 0) {
pr_err("Device reset failed\n"); netdev_err(ndev, "Device reset failed\n");
ret = -ETIMEDOUT; ret = -ETIMEDOUT;
} }
return ret; return ret;
...@@ -2924,7 +2925,7 @@ static int sh_eth_drv_probe(struct platform_device *pdev) ...@@ -2924,7 +2925,7 @@ static int sh_eth_drv_probe(struct platform_device *pdev)
} }
/* print device information */ /* print device information */
pr_info("Base address at 0x%x, %pM, IRQ %d.\n", netdev_info(ndev, "Base address at 0x%x, %pM, IRQ %d.\n",
(u32)ndev->base_addr, ndev->dev_addr, ndev->irq); (u32)ndev->base_addr, ndev->dev_addr, ndev->irq);
platform_set_drvdata(pdev, ndev); platform_set_drvdata(pdev, ndev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment