can: sja1000: convert printk to use netdev API
authorFlorian Vaussard <florian.vaussard@epfl.ch>
Fri, 31 Jan 2014 13:34:33 +0000 (14:34 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 4 Feb 2014 09:04:21 +0000 (10:04 +0100)
Use netdev_* where applicable.

Signed-off-by: Florian Vaussard <florian.vaussard@epfl.ch>
Tested-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/sja1000/sja1000.c

index f17c301..55cce47 100644 (file)
@@ -106,8 +106,7 @@ static int sja1000_probe_chip(struct net_device *dev)
        struct sja1000_priv *priv = netdev_priv(dev);
 
        if (priv->reg_base && sja1000_is_absent(priv)) {
-               printk(KERN_INFO "%s: probing @0x%lX failed\n",
-                      DRV_NAME, dev->base_addr);
+               netdev_err(dev, "probing failed\n");
                return 0;
        }
        return -1;