summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2014-03-24 12:57:25 -0300
committerDavid S. Miller <davem@davemloft.net>2014-03-26 15:46:15 -0400
commit1e87af97e63d7e4bf6b9d2d6383a8c1c689afcb1 (patch)
tree65ce6a885afbabc710738c05ad59c31e895a228d /drivers/net
parentcc93fc51f3a1cc9eae7d1deb3cb8226d08c4ca58 (diff)
downloadblackbird-op-linux-1e87af97e63d7e4bf6b9d2d6383a8c1c689afcb1.tar.gz
blackbird-op-linux-1e87af97e63d7e4bf6b9d2d6383a8c1c689afcb1.zip
smsc911x: Do not use netdev_dbg() when device is not registered
With debug enabled we get the following message: smsc911x smsc911x (unregistered net_device): couldn't get clock -2 As the device has not been registered at this point, it is better to use dev_dbg() instead of netdev_dbg(). CC: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Suggested-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/smsc/smsc911x.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/smsc/smsc911x.c b/drivers/net/ethernet/smsc/smsc911x.c
index ed36ff48af57..13b21b8855f1 100644
--- a/drivers/net/ethernet/smsc/smsc911x.c
+++ b/drivers/net/ethernet/smsc/smsc911x.c
@@ -439,7 +439,8 @@ static int smsc911x_request_resources(struct platform_device *pdev)
/* Request clock */
pdata->clk = clk_get(&pdev->dev, NULL);
if (IS_ERR(pdata->clk))
- netdev_dbg(ndev, "couldn't get clock %li\n", PTR_ERR(pdata->clk));
+ dev_dbg(&pdev->dev, "couldn't get clock %li\n",
+ PTR_ERR(pdata->clk));
return ret;
}
OpenPOWER on IntegriCloud