[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1205060263.7215.4.camel@roc-laptop>
Date: Sun, 09 Mar 2008 03:57:43 -0700
From: Bryan Wu <cooloney@...nel.org>
To: linux-kernel@...r.kernel.org, Magnus Damm <damm@...l.co.jp>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: [PATCH -mm] [NETDEV] smc91x: fix the compiling broken bug - when
SMC_GET_MAC_ADDR API upgrade
>>From aba13cf58fb2d3ad418e609f1b5fd8620805f27e Mon Sep 17 00:00:00 2001
From: Bryan Wu <cooloney@...nel.org>
Date: Sun, 9 Mar 2008 02:00:21 -0700
Subject: [PATCH -mm] [NETDEV] smc91x: fix the compiling broken bug - when SMC_GET_MAC_ADDR API upgrade
---
drivers/net/smc91x.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/smc91x.h b/drivers/net/smc91x.h
index 13d3ef4..d1e1d8e 100644
--- a/drivers/net/smc91x.h
+++ b/drivers/net/smc91x.h
@@ -93,14 +93,14 @@
#define SMC_insw(a, r, p, l) insw ((unsigned long *)((a) + (r)), p, l)
# endif
/* check if the mac in reg is valid */
-#define SMC_GET_MAC_ADDR(addr) \
+#define SMC_GET_MAC_ADDR(lp, addr) \
do { \
unsigned int __v; \
- __v = SMC_inw(ioaddr, ADDR0_REG); \
+ __v = SMC_inw(ioaddr, ADDR0_REG(lp)); \
addr[0] = __v; addr[1] = __v >> 8; \
- __v = SMC_inw(ioaddr, ADDR1_REG); \
+ __v = SMC_inw(ioaddr, ADDR1_REG(lp)); \
addr[2] = __v; addr[3] = __v >> 8; \
- __v = SMC_inw(ioaddr, ADDR2_REG); \
+ __v = SMC_inw(ioaddr, ADDR2_REG(lp)); \
addr[4] = __v; addr[5] = __v >> 8; \
if (*(u32 *)(&addr[0]) == 0xFFFFFFFF) { \
random_ether_addr(addr); \
--
1.5.4.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists