mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 14:30:53 +07:00
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>
This commit is contained in:
parent
cb2518ca9f
commit
909285c437
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user