ide: palm_bk3710: add missing __iomem annotation
authorJingoo Han <jg1.han@samsung.com>
Wed, 7 Aug 2013 05:17:11 +0000 (14:17 +0900)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Sep 2013 19:21:29 +0000 (15:21 -0400)
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>
drivers/ide/palm_bk3710.c

index 6107cc4ee012a16b27f1e0bb75bc328fbca89445..ba20d18c0373913236d6d62fad3ee73ef0723887 100644 (file)
@@ -191,7 +191,7 @@ static void palm_bk3710_setpiomode(void __iomem *base, ide_drive_t *mate,
 static void palm_bk3710_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive)
 {
        int is_slave = drive->dn & 1;
-       void __iomem *base = (void *)hwif->dma_base;
+       void __iomem *base = (void __iomem *)hwif->dma_base;
        const u8 xferspeed = drive->dma_mode;
 
        if (xferspeed >= XFER_UDMA_0) {
@@ -209,7 +209,7 @@ static void palm_bk3710_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive)
        unsigned int cycle_time;
        int is_slave = drive->dn & 1;
        ide_drive_t *mate;
-       void __iomem *base = (void *)hwif->dma_base;
+       void __iomem *base = (void __iomem *)hwif->dma_base;
        const u8 pio = drive->pio_mode - XFER_PIO_0;
 
        /*