Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262259AbVAZAUv (ORCPT ); Tue, 25 Jan 2005 19:20:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262261AbVAZATq (ORCPT ); Tue, 25 Jan 2005 19:19:46 -0500 Received: from de01egw02.freescale.net ([192.88.165.103]:37110 "EHLO de01egw02.freescale.net") by vger.kernel.org with ESMTP id S262262AbVAZASF (ORCPT ); Tue, 25 Jan 2005 19:18:05 -0500 Date: Tue, 25 Jan 2005 18:17:48 -0600 (CST) From: Kumar Gala X-X-Sender: galak@blarg.somerset.sps.mot.com To: akpm@osdl.org cc: linux-kernel@vger.kernel.org, linuxppc-embedded@ozlabs.org, afleming@freescale.com Subject: [PATCH] netdrv gianfar: Fix usage of gfar_read in debug code Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1428 Lines: 45 Fixes instances where gfar_read() was invoked in debug codewith a value, rather than a pointer. Signed-of-by: Andy Fleming Signed-of-by: Kumar Gala --- 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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/