aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_promise.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/sata_promise.c')
-rw-r--r--drivers/ata/sata_promise.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ata/sata_promise.c b/drivers/ata/sata_promise.c
index 6dc0b011a6b7..7fcc4fe4d79b 100644
--- a/drivers/ata/sata_promise.c
+++ b/drivers/ata/sata_promise.c
@@ -382,7 +382,7 @@ static int pdc_sata_port_start(struct ata_port *ap)
382 382
383 /* fix up PHYMODE4 align timing */ 383 /* fix up PHYMODE4 align timing */
384 if (ap->flags & PDC_FLAG_GEN_II) { 384 if (ap->flags & PDC_FLAG_GEN_II) {
385 void __iomem *mmio = (void __iomem *) ap->ioaddr.scr_addr; 385 void __iomem *mmio = ap->ioaddr.scr_addr;
386 unsigned int tmp; 386 unsigned int tmp;
387 387
388 tmp = readl(mmio + 0x014); 388 tmp = readl(mmio + 0x014);
@@ -418,7 +418,7 @@ static void pdc_reset_port(struct ata_port *ap)
418static int pdc_pata_cable_detect(struct ata_port *ap) 418static int pdc_pata_cable_detect(struct ata_port *ap)
419{ 419{
420 u8 tmp; 420 u8 tmp;
421 void __iomem *mmio = (void __iomem *) ap->ioaddr.cmd_addr + PDC_CTLSTAT + 0x03; 421 void __iomem *mmio = ap->ioaddr.cmd_addr + PDC_CTLSTAT + 0x03;
422 422
423 tmp = readb(mmio); 423 tmp = readb(mmio);
424 if (tmp & 0x01) 424 if (tmp & 0x01)
@@ -573,7 +573,7 @@ static void pdc_qc_prep(struct ata_queued_cmd *qc)
573 573
574static void pdc_freeze(struct ata_port *ap) 574static void pdc_freeze(struct ata_port *ap)
575{ 575{
576 void __iomem *mmio = (void __iomem *) ap->ioaddr.cmd_addr; 576 void __iomem *mmio = ap->ioaddr.cmd_addr;
577 u32 tmp; 577 u32 tmp;
578 578
579 tmp = readl(mmio + PDC_CTLSTAT); 579 tmp = readl(mmio + PDC_CTLSTAT);
@@ -585,7 +585,7 @@ static void pdc_freeze(struct ata_port *ap)
585 585
586static void pdc_thaw(struct ata_port *ap) 586static void pdc_thaw(struct ata_port *ap)
587{ 587{
588 void __iomem *mmio = (void __iomem *) ap->ioaddr.cmd_addr; 588 void __iomem *mmio = ap->ioaddr.cmd_addr;
589 u32 tmp; 589 u32 tmp;
590 590
591 /* clear IRQ */ 591 /* clear IRQ */