smsc911x: Do not use netdev_dbg() when device is not registered
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 24 Mar 2014 15:57:25 +0000 (12:57 -0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Mar 2014 19:46:15 +0000 (15:46 -0400)
commit1e87af97e63d7e4bf6b9d2d6383a8c1c689afcb1
tree65ce6a885afbabc710738c05ad59c31e895a228d
parentcc93fc51f3a1cc9eae7d1deb3cb8226d08c4ca58
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>
drivers/net/ethernet/smsc/smsc911x.c