Skip to content

Commit

Permalink
ata: sata_dwc_460ex: get rid of incorrect cast
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Mans Rullgard <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
  • Loading branch information
mansr authored and htejun committed May 10, 2016
1 parent ae95d95 commit 175553e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/ata/sata_dwc_460ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 175553e

Please sign in to comment.