]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
smsc911x: Change clock warning message to debug level
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 19 Mar 2014 14:22:06 +0000 (11:22 -0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Mar 2014 20:17:22 +0000 (16:17 -0400)
Since passing the clock is not mandatory, change the warning message to debug,
so that we avoid getting the following clock failure message on every boot:

smsc911x: Driver version 2008-10-21
smsc911x smsc911x (unregistered net_device): couldn't get clock -2
libphy: smsc911x-mdio: probed

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/smsc/smsc911x.c

index 6382b7c416f4a4e2e6a7769e2846f19c84565251..95e2b9a20d400ed231cc34fc01390a571de6e26f 100644 (file)
@@ -439,7 +439,7 @@ static int smsc911x_request_resources(struct platform_device *pdev)
        /* Request clock */
        pdata->clk = clk_get(&pdev->dev, NULL);
        if (IS_ERR(pdata->clk))
-               netdev_warn(ndev, "couldn't get clock %li\n", PTR_ERR(pdata->clk));
+               netdev_dbg(ndev, "couldn't get clock %li\n", PTR_ERR(pdata->clk));
 
        return ret;
 }