* [PATCH -mm] [NETDEV] smc91x: fix the compiling broken bug - when SMC_GET_MAC_ADDR API upgrade
@ 2008-03-09 10:57 Bryan Wu
0 siblings, 0 replies; only message in thread
From: Bryan Wu @ 2008-03-09 10:57 UTC (permalink / raw)
To: linux-kernel, Magnus Damm, Andrew Morton
>From aba13cf58fb2d3ad418e609f1b5fd8620805f27e Mon Sep 17 00:00:00 2001
From: Bryan Wu <cooloney@kernel.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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-03-07 19:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-09 10:57 [PATCH -mm] [NETDEV] smc91x: fix the compiling broken bug - when SMC_GET_MAC_ADDR API upgrade Bryan Wu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®