aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/fs_enet/mac-fec.c
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2010-02-26 07:00:47 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-27 05:34:35 -0500
commitfcb6a1c83e48c30ff99624e9c46ce301707ede05 (patch)
tree8dfa3e911cb3ac5dd725fc4980b636d0e6e54693 /drivers/net/fs_enet/mac-fec.c
parentce300c7ffa61165f9bfd16e511ee0cd4114977ab (diff)
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-fec.c')
-rw-r--r--drivers/net/fs_enet/mac-fec.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/net/fs_enet/mac-fec.c b/drivers/net/fs_enet/mac-fec.c
index ca806d1ab3f6..8a632f668c1f 100644
--- a/drivers/net/fs_enet/mac-fec.c
+++ b/drivers/net/fs_enet/mac-fec.c
@@ -257,8 +257,7 @@ static void restart(struct net_device *dev)
257 257
258 r = whack_reset(fep->fec.fecp); 258 r = whack_reset(fep->fec.fecp);
259 if (r != 0) 259 if (r != 0)
260 printk(KERN_ERR DRV_MODULE_NAME 260 dev_err(fep->dev, "FEC Reset FAILED!\n");
261 ": %s FEC Reset FAILED!\n", dev->name);
262 /* 261 /*
263 * Set station address. 262 * Set station address.
264 */ 263 */
@@ -355,9 +354,7 @@ static void stop(struct net_device *dev)
355 udelay(1); 354 udelay(1);
356 355
357 if (i == FEC_RESET_DELAY) 356 if (i == FEC_RESET_DELAY)
358 printk(KERN_WARNING DRV_MODULE_NAME 357 dev_warn(fep->dev, "FEC timeout on graceful transmit stop\n");
359 ": %s FEC timeout on graceful transmit stop\n",
360 dev->name);
361 /* 358 /*
362 * Disable FEC. Let only MII interrupts. 359 * Disable FEC. Let only MII interrupts.
363 */ 360 */
@@ -433,8 +430,9 @@ static void clear_int_events(struct net_device *dev, u32 int_events)
433 430
434static void ev_error(struct net_device *dev, u32 int_events) 431static void ev_error(struct net_device *dev, u32 int_events)
435{ 432{
436 printk(KERN_WARNING DRV_MODULE_NAME 433 struct fs_enet_private *fep = netdev_priv(dev);
437 ": %s FEC ERROR(s) 0x%x\n", dev->name, int_events); 434
435 dev_warn(fep->dev, "FEC ERROR(s) 0x%x\n", int_events);
438} 436}
439 437
440static int get_regs(struct net_device *dev, void *p, int *sizep) 438static int get_regs(struct net_device *dev, void *p, int *sizep)