From: Jeff Garzik Date: Wed, 31 Oct 2007 11:27:58 +0000 (+0800) Subject: ata/sata_fsl: cleanup needless casts to/from void __iomem * X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2a52e8d4ea86a9143b4c3a1c1ec249a3b8bee74e;p=openwrt%2Fstaging%2Fblogic.git ata/sata_fsl: cleanup needless casts to/from void __iomem * Signed-off-by: Jeff Garzik Signed-off-by: Li Yang Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c index e04fb75e58fb..e3bf9546fd08 100644 --- a/drivers/ata/sata_fsl.c +++ b/drivers/ata/sata_fsl.c @@ -483,7 +483,7 @@ static int sata_fsl_scr_write(struct ata_port *ap, unsigned int sc_reg_in, VPRINTK("xx_scr_write, reg_in = %d\n", sc_reg); - iowrite32(val, (void __iomem *)ssr_base + (sc_reg * 4)); + iowrite32(val, ssr_base + (sc_reg * 4)); return 0; } @@ -507,7 +507,7 @@ static int sata_fsl_scr_read(struct ata_port *ap, unsigned int sc_reg_in, VPRINTK("xx_scr_read, reg_in = %d\n", sc_reg); - *val = ioread32((void __iomem *)ssr_base + (sc_reg * 4)); + *val = ioread32(ssr_base + (sc_reg * 4)); return 0; }