diff options
author | wdenk <wdenk> | 2003-06-06 11:20:01 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2003-06-06 11:20:01 +0000 |
commit | 487778b781257831aa9b9140dd3c7ad4176e8314 (patch) | |
tree | 9e6465b0df23d42d338dd23cccfba8189ab74395 /drivers/smc91111.h | |
parent | 8b601449e840a5d1e29859dc2a968c43284cee66 (diff) | |
download | u-boot-imx-487778b781257831aa9b9140dd3c7ad4176e8314.zip u-boot-imx-487778b781257831aa9b9140dd3c7ad4176e8314.tar.gz u-boot-imx-487778b781257831aa9b9140dd3c7ad4176e8314.tar.bz2 |
Patch by Robert Schwebel, April 02, 2003:
fix for SMSC91111 driver
Diffstat (limited to 'drivers/smc91111.h')
-rw-r--r-- | drivers/smc91111.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/smc91111.h b/drivers/smc91111.h index a372c27..3ac0a03 100644 --- a/drivers/smc91111.h +++ b/drivers/smc91111.h @@ -80,7 +80,7 @@ typedef unsigned long int dword; #define SMC_inw(r) (*((volatile word *)(SMC_BASE_ADDRESS+(r)))) #define SMC_inb(p) ({ \ unsigned int __p = (unsigned int)(SMC_BASE_ADDRESS + (p)); \ - unsigned int __v = *(volatile unsigned short *)((SMC_BASE_ADDRESS + __p) & ~1); \ + unsigned int __v = *(volatile unsigned short *)((__p) & ~1); \ if (__p & 1) __v >>= 8; \ else __v &= 0xff; \ __v; }) |