diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-07 01:17:11 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-05 15:21:29 -0400 |
commit | 70ddce832a964f5fc570b585a18d301a8ee59790 (patch) | |
tree | 4dc856033c9a7f14773e1a60b4f2eaca34a8e1be /drivers/ide | |
parent | 7b6b5612380c829ea026c4a3ff427d362f46a1d9 (diff) |
ide: palm_bk3710: add missing __iomem annotation
Added missing __iomem annotation in order to fix the following
sparse warnings:
drivers/ide/palm_bk3710.c:194:31: warning: incorrect type in initializer (different address spaces)
drivers/ide/palm_bk3710.c:194:31: expected void [noderef] <asn:2>*base
drivers/ide/palm_bk3710.c:194:31: got void *<noident>
drivers/ide/palm_bk3710.c:212:31: warning: incorrect type in initializer (different address spaces)
drivers/ide/palm_bk3710.c:212:31: expected void [noderef] <asn:2>*base
drivers/ide/palm_bk3710.c:212:31: got void *<noident>
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/palm_bk3710.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/palm_bk3710.c b/drivers/ide/palm_bk3710.c index 6107cc4ee012..ba20d18c0373 100644 --- a/drivers/ide/palm_bk3710.c +++ b/drivers/ide/palm_bk3710.c | |||
@@ -191,7 +191,7 @@ static void palm_bk3710_setpiomode(void __iomem *base, ide_drive_t *mate, | |||
191 | static void palm_bk3710_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) | 191 | static void palm_bk3710_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) |
192 | { | 192 | { |
193 | int is_slave = drive->dn & 1; | 193 | int is_slave = drive->dn & 1; |
194 | void __iomem *base = (void *)hwif->dma_base; | 194 | void __iomem *base = (void __iomem *)hwif->dma_base; |
195 | const u8 xferspeed = drive->dma_mode; | 195 | const u8 xferspeed = drive->dma_mode; |
196 | 196 | ||
197 | if (xferspeed >= XFER_UDMA_0) { | 197 | if (xferspeed >= XFER_UDMA_0) { |
@@ -209,7 +209,7 @@ static void palm_bk3710_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) | |||
209 | unsigned int cycle_time; | 209 | unsigned int cycle_time; |
210 | int is_slave = drive->dn & 1; | 210 | int is_slave = drive->dn & 1; |
211 | ide_drive_t *mate; | 211 | ide_drive_t *mate; |
212 | void __iomem *base = (void *)hwif->dma_base; | 212 | void __iomem *base = (void __iomem *)hwif->dma_base; |
213 | const u8 pio = drive->pio_mode - XFER_PIO_0; | 213 | const u8 pio = drive->pio_mode - XFER_PIO_0; |
214 | 214 | ||
215 | /* | 215 | /* |