From: Jingoo Han Date: Wed, 7 Aug 2013 05:17:11 +0000 (+0900) Subject: ide: palm_bk3710: add missing __iomem annotation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=70ddce832a964f5fc570b585a18d301a8ee59790;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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] *base drivers/ide/palm_bk3710.c:194:31: got void * 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] *base drivers/ide/palm_bk3710.c:212:31: got void * Signed-off-by: Jingoo Han Signed-off-by: David S. Miller --- 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, 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; /*