Skip to content

Commit

Permalink
can: sja1000: convert printk to use netdev API
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Florian Vaussard authored and Marc Kleine-Budde committed Feb 4, 2014
1 parent cb2518c commit 909285c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/can/sja1000/sja1000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 909285c

Please sign in to comment.