summaryrefslogtreecommitdiff
path: root/drivers/net/can/sja1000/sja1000.c
diff options
context:
space:
mode:
authorFlorian Vaussard <florian.vaussard@epfl.ch>2014-01-31 17:34:33 +0400
committerMarc Kleine-Budde <mkl@pengutronix.de>2014-02-04 13:04:21 +0400
commit909285c437d4ff85ed55eae13eebd5c851570304 (patch)
treec4375b991a3de6dae895e1f3389ebe72a7096a88 /drivers/net/can/sja1000/sja1000.c
parentcb2518ca9f06dfcfa3d175773631bfb1e461bdc7 (diff)
downloadlinux-909285c437d4ff85ed55eae13eebd5c851570304.tar.xz
can: sja1000: convert printk to use netdev API
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>
Diffstat (limited to 'drivers/net/can/sja1000/sja1000.c')
-rw-r--r--drivers/net/can/sja1000/sja1000.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/can/sja1000/sja1000.c b/drivers/net/can/sja1000/sja1000.c
index f17c3018b7c7..55cce4737518 100644
--- a/drivers/net/can/sja1000/sja1000.c
+++ b/drivers/net/can/sja1000/sja1000.c
@@ -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;