Fixes instances where gfar_read() was invoked in debug codewith a value, 
rather than a pointer.

Signed-of-by: Andy Fleming <[EMAIL PROTECTED]>
Signed-of-by: Kumar Gala <[EMAIL PROTECTED]>

---

diff -Nru a/drivers/net/gianfar.c b/drivers/net/gianfar.c
--- a/drivers/net/gianfar.c     2005-01-25 18:14:13 -06:00
+++ b/drivers/net/gianfar.c     2005-01-25 18:14:13 -06:00
@@ -1190,8 +1190,8 @@
        } 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 @@
 
 #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 @@
 
 #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) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to