Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e87af97 authored by Fabio Estevam's avatar Fabio Estevam Committed by David S. Miller
Browse files

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: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cc93fc51
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -439,7 +439,8 @@ static int smsc911x_request_resources(struct platform_device *pdev)
	/* Request clock */
	/* Request clock */
	pdata->clk = clk_get(&pdev->dev, NULL);
	pdata->clk = clk_get(&pdev->dev, NULL);
	if (IS_ERR(pdata->clk))
	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;
	return ret;
}
}