Revert "smc91x: fix build breakage from the SMC_GET_MAC_ADDR API upgrade"
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 7 Apr 2008 20:20:08 +0000 (13:20 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 7 Apr 2008 20:20:08 +0000 (13:20 -0700)
This reverts commit 9e6db60825ef7e7999abc610ce256ba768e58162, which was
merged without the API it needed, causing build breakage.

Reported-by: Bryan Wu <cooloney@kernel.org>
Acked-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/net/smc91x.h

index 98a832a7553988664a0a33c923920d04f4bad73b..51d4134b37b196307bf98480fd786e64d983e897 100644 (file)
 #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(lp, addr)                             \
+#define SMC_GET_MAC_ADDR(addr)                                 \
        do {                                                    \
                unsigned int __v;                               \
-               __v = SMC_inw(ioaddr, ADDR0_REG(lp));           \
+               __v = SMC_inw(ioaddr, ADDR0_REG);               \
                addr[0] = __v; addr[1] = __v >> 8;              \
-               __v = SMC_inw(ioaddr, ADDR1_REG(lp));           \
+               __v = SMC_inw(ioaddr, ADDR1_REG);               \
                addr[2] = __v; addr[3] = __v >> 8;              \
-               __v = SMC_inw(ioaddr, ADDR2_REG(lp));           \
+               __v = SMC_inw(ioaddr, ADDR2_REG);               \
                addr[4] = __v; addr[5] = __v >> 8;              \
                if (*(u32 *)(&addr[0]) == 0xFFFFFFFF) {         \
                        random_ether_addr(addr);                \