diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2014-05-17 01:25:43 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-19 06:01:27 +0400 |
commit | d2aca8f9a64c26dcd9b3eb27db949f830eb80b28 (patch) | |
tree | 947028ac39abd24dbd624dc5108ad35f92a146cd /arch/sparc/include/asm/auxio_32.h | |
parent | 7738925de8500093638dd7fa0e5c1d8128c9fc6a (diff) | |
download | linux-d2aca8f9a64c26dcd9b3eb27db949f830eb80b28.tar.xz |
sparc32: fix sparse warning in auxio_32.c
Fix following warning:
auxio_32.c:133:33: warning: cast removes address space of expression
To fix this auxio_power_register had to be defined as u8 _iomem.
Use proper sbus operations on the pointer.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm/auxio_32.h')
-rw-r--r-- | arch/sparc/include/asm/auxio_32.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/include/asm/auxio_32.h b/arch/sparc/include/asm/auxio_32.h index 3a319775ae37..b81666043c0b 100644 --- a/arch/sparc/include/asm/auxio_32.h +++ b/arch/sparc/include/asm/auxio_32.h @@ -78,7 +78,7 @@ do { \ /* AUXIO2 (Power Off Control) */ -extern __volatile__ unsigned char * auxio_power_register; +extern volatile u8 __iomem *auxio_power_register; #define AUXIO_POWER_DETECT_FAILURE 32 #define AUXIO_POWER_CLEAR_FAILURE 2 |