diff options
Diffstat (limited to 'drivers/ata/sata_promise.c')
-rw-r--r-- | drivers/ata/sata_promise.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/ata/sata_promise.c b/drivers/ata/sata_promise.c index 5a10dc5048ad..f5ea06bbde75 100644 --- a/drivers/ata/sata_promise.c +++ b/drivers/ata/sata_promise.c | |||
@@ -663,7 +663,7 @@ static void pdc_thaw(struct ata_port *ap) | |||
663 | u32 tmp; | 663 | u32 tmp; |
664 | 664 | ||
665 | /* clear IRQ */ | 665 | /* clear IRQ */ |
666 | readl(mmio + PDC_INT_SEQMASK); | 666 | readl(mmio + PDC_COMMAND); |
667 | 667 | ||
668 | /* turn IRQ back on */ | 668 | /* turn IRQ back on */ |
669 | tmp = readl(mmio + PDC_CTLSTAT); | 669 | tmp = readl(mmio + PDC_CTLSTAT); |
@@ -781,10 +781,9 @@ static inline unsigned int pdc_host_intr(struct ata_port *ap, | |||
781 | 781 | ||
782 | static void pdc_irq_clear(struct ata_port *ap) | 782 | static void pdc_irq_clear(struct ata_port *ap) |
783 | { | 783 | { |
784 | struct ata_host *host = ap->host; | 784 | void __iomem *mmio = ap->ioaddr.cmd_addr; |
785 | void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; | ||
786 | 785 | ||
787 | readl(mmio + PDC_INT_SEQMASK); | 786 | readl(mmio + PDC_COMMAND); |
788 | } | 787 | } |
789 | 788 | ||
790 | static irqreturn_t pdc_interrupt(int irq, void *dev_instance) | 789 | static irqreturn_t pdc_interrupt(int irq, void *dev_instance) |