staging:iio:spear_adc: Fix sparse warning
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 12 Oct 2013 13:55:00 +0000 (14:55 +0100)
committerJonathan Cameron <jic23@kernel.org>
Mon, 14 Oct 2013 22:09:47 +0000 (23:09 +0100)
commit8ecf5002f4e5be54b05f98d581ffd5f8a4082546
treeb8b6000f2d226a58757143d878d697d59584dc6f
parentd406fd9d9a90534412d4f7fb4077928e63b77247
staging:iio:spear_adc: Fix sparse warning

The driver is casting from one __iomem pointer to another. Make sure to include
__iomem in the cast, otherwise sparse will complain with the following warning:

drivers/staging/iio/adc/spear_adc.c:321:18: warning: cast removes address space of expression
drivers/staging/iio/adc/spear_adc.c:320:33: warning: incorrect type in assignment (different address spaces)
drivers/staging/iio/adc/spear_adc.c:320:33:    expected struct adc_regs_spear3xx [noderef] <asn:2>*adc_base_spear3xx
drivers/staging/iio/adc/spear_adc.c:320:33:    got struct adc_regs_spear3xx *<noident>

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: Stefan Roese <sr@denx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/spear_adc.c