]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ata: sata_dwc_460ex: get rid of incorrect cast
authorMans Rullgard <mans@mansr.com>
Tue, 26 Apr 2016 09:03:16 +0000 (12:03 +0300)
committerTejun Heo <tj@kernel.org>
Tue, 10 May 2016 16:29:20 +0000 (12:29 -0400)
The (void *__iomem) cast is wrong.  Change the target type of the
"base" pointer to void __iomem instead and drop the cast.

Tested-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/sata_dwc_460ex.c

index 2912e4d5361fffb81246a8476ab08ddba22f16d2..90e3e14b4acebcf57ff8b55987c6add55e2ba05a 100644 (file)
@@ -1219,7 +1219,7 @@ static int sata_dwc_probe(struct platform_device *ofdev)
        struct sata_dwc_device *hsdev;
        u32 idr, versionr;
        char *ver = (char *)&versionr;
-       u8 __iomem *base;
+       void __iomem *base;
        int err = 0;
        int irq;
        struct ata_host *host;
@@ -1246,7 +1246,7 @@ static int sata_dwc_probe(struct platform_device *ofdev)
        dev_dbg(&ofdev->dev, "ioremap done for SATA register address\n");
 
        /* Synopsys DWC SATA specific Registers */
-       hsdev->sata_dwc_regs = (void *__iomem)(base + SATA_DWC_REG_OFFSET);
+       hsdev->sata_dwc_regs = base + SATA_DWC_REG_OFFSET;
 
        /* Setup port */
        host->ports[0]->ioaddr.cmd_addr = base;