diff options
author | Anatolij Gustschin <agust@denx.de> | 2010-02-26 12:00:47 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-27 02:34:35 -0800 |
commit | fcb6a1c83e48c30ff99624e9c46ce301707ede05 (patch) | |
tree | 8dfa3e911cb3ac5dd725fc4980b636d0e6e54693 /drivers/net/fs_enet/mac-fcc.c | |
parent | ce300c7ffa61165f9bfd16e511ee0cd4114977ab (diff) | |
download | op-kernel-dev-fcb6a1c83e48c30ff99624e9c46ce301707ede05.zip op-kernel-dev-fcb6a1c83e48c30ff99624e9c46ce301707ede05.tar.gz |
fs_enet: use dev_xxx instead of printk
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/fs_enet/mac-fcc.c')
-rw-r--r-- | drivers/net/fs_enet/mac-fcc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/fs_enet/mac-fcc.c b/drivers/net/fs_enet/mac-fcc.c index a761d31..cf4f674 100644 --- a/drivers/net/fs_enet/mac-fcc.c +++ b/drivers/net/fs_enet/mac-fcc.c @@ -476,8 +476,9 @@ static void clear_int_events(struct net_device *dev, u32 int_events) static void ev_error(struct net_device *dev, u32 int_events) { - printk(KERN_WARNING DRV_MODULE_NAME - ": %s FS_ENET ERROR(s) 0x%x\n", dev->name, int_events); + struct fs_enet_private *fep = netdev_priv(dev); + + dev_warn(fep->dev, "FS_ENET ERROR(s) 0x%x\n", int_events); } static int get_regs(struct net_device *dev, void *p, int *sizep) |