diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2010-03-31 22:54:18 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-26 13:51:08 -0400 |
commit | 0a182fd88f8180b342f753f04c7d5507b5891c96 (patch) | |
tree | 056f2ec8a8f0600175fce41468edfd7d0b69cef3 /drivers/ssb | |
parent | ea2db495f92ad2cf3301623e60cb95b4062bc484 (diff) | |
download | kernel-common-0a182fd88f8180b342f753f04c7d5507b5891c96.tar.gz kernel-common-0a182fd88f8180b342f753f04c7d5507b5891c96.tar.bz2 kernel-common-0a182fd88f8180b342f753f04c7d5507b5891c96.zip |
ssb: Use relative offsets for SPROM
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/ssb')
-rw-r--r-- | drivers/ssb/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ssb/pci.c b/drivers/ssb/pci.c index 5bb1278759c1..3f556d6ec4c2 100644 --- a/drivers/ssb/pci.c +++ b/drivers/ssb/pci.c @@ -167,7 +167,7 @@ err_pci: } /* Get the word-offset for a SSB_SPROM_XXX define. */ -#define SPOFF(offset) (((offset) - SSB_SPROM_BASE1) / sizeof(u16)) +#define SPOFF(offset) ((offset) / sizeof(u16)) /* Helper to extract some _offset, which is one of the SSB_SPROM_XXX defines. */ #define SPEX16(_outvar, _offset, _mask, _shift) \ out->_outvar = ((in[SPOFF(_offset)] & (_mask)) >> (_shift)) |