smc91x: fix build breakage from the SMC_GET_MAC_ADDR API upgrade
Subsystems (2)
PATCH 1/3 smc91x: fix build breakage from the SMC_GET_MAC_ADDR API upgrade
From: Bryan Wu <[email protected]>
Cc Jeff Garzik <[email protected]>
Cc Deepak Saxena <[email protected]>
Cc Nicolas Pitre <[email protected]>
Cc Russell King <[email protected]>
Cc Paul Mundt <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/net/smc91x.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/net/smc91x.h renamed from drivers/net/smc91x.h~smc91x-fix-build-breakage-from-the-smc_get_mac_addr-api-upgrade +4 -4
@@ -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); \
_
Quoted 8 lines · [email protected] wrote:
From: Bryan Wu <[email protected]>
Cc Jeff Garzik <[email protected]>Cc Deepak Saxena <[email protected]>Cc Nicolas Pitre <[email protected]>Cc Russell King <[email protected]>Cc Paul Mundt <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Quoted 4 lines
---
drivers/net/smc91x.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
davem already has this