Commit 9809e260 authored by Kumar Gala's avatar Kumar Gala Committed by Jeff Garzik

[PATCH] netdrv gianfar: Fix usage of gfar_read in debug code

Fixes instances where gfar_read() was invoked in debug codewith a value,
rather than a pointer.
Signed-of-by: default avatarAndy Fleming <afleming@freescale.com>
Signed-of-by: default avatarKumar Gala <afleming@freescale.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent 7c6cbbe3
......@@ -1190,8 +1190,8 @@ irqreturn_t gfar_receive(int irq, void *dev_id, struct pt_regs *regs)
} else {
#ifdef VERBOSE_GFAR_ERRORS
printk(KERN_DEBUG "%s: receive called twice (%x)[%x]\n",
dev->name, gfar_read(priv->regs->ievent),
gfar_read(priv->regs->imask));
dev->name, gfar_read(&priv->regs->ievent),
gfar_read(&priv->regs->imask));
#endif
}
#else
......@@ -1415,7 +1415,7 @@ static irqreturn_t gfar_interrupt(int irq, void *dev_id, struct pt_regs *regs)
#ifdef VERBOSE_GFAR_ERRORS
printk(KERN_DEBUG "%s: busy error (rhalt: %x)\n", dev->name,
gfar_read(priv->regs->rstat));
gfar_read(&priv->regs->rstat));
#endif
}
if (events & IEVENT_BABR) {
......@@ -1793,7 +1793,7 @@ static irqreturn_t gfar_error(int irq, void *dev_id, struct pt_regs *regs)
#ifdef VERBOSE_GFAR_ERRORS
printk(KERN_DEBUG "%s: busy error (rhalt: %x)\n", dev->name,
gfar_read(priv->regs->rstat));
gfar_read(&priv->regs->rstat));
#endif
}
if (events & IEVENT_BABR) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment