diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2014-05-16 23:25:43 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-19 04:01:27 +0200 |
commit | d2aca8f9a64c26dcd9b3eb27db949f830eb80b28 (patch) | |
tree | 947028ac39abd24dbd624dc5108ad35f92a146cd /arch/sparc/kernel/auxio_32.c | |
parent | sparc32: fix sparse warnings in pcic.c (diff) | |
download | linux-d2aca8f9a64c26dcd9b3eb27db949f830eb80b28.tar.xz linux-d2aca8f9a64c26dcd9b3eb27db949f830eb80b28.zip |
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/kernel/auxio_32.c')
-rw-r--r-- | arch/sparc/kernel/auxio_32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sparc/kernel/auxio_32.c b/arch/sparc/kernel/auxio_32.c index c6fc1d451407..ae88c223e4d3 100644 --- a/arch/sparc/kernel/auxio_32.c +++ b/arch/sparc/kernel/auxio_32.c @@ -106,7 +106,7 @@ EXPORT_SYMBOL(set_auxio); /* sun4m power control register (AUXIO2) */ -volatile unsigned char * auxio_power_register = NULL; +volatile u8 __iomem *auxio_power_register = NULL; void __init auxio_power_probe(void) { @@ -130,8 +130,8 @@ void __init auxio_power_probe(void) r.flags = regs.which_io & 0xF; r.start = regs.phys_addr; r.end = regs.phys_addr + regs.reg_size - 1; - auxio_power_register = (unsigned char *) of_ioremap(&r, 0, - regs.reg_size, "auxpower"); + auxio_power_register = + (u8 __iomem *)of_ioremap(&r, 0, regs.reg_size, "auxpower"); /* Display a quick message on the console. */ if (auxio_power_register) |