]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ata/ahci.c
ahci: port_no should be used when clearing IRQ in ahci_thaw()
[linux-2.6-omap-h63xx.git] / drivers / ata / ahci.c
index 28a82e3403f10d074e1d86d69f4b0d69c0546e0a..48616c6fee9d6c30d36f206b60b98707020e0cc8 100644 (file)
@@ -1282,7 +1282,7 @@ static void ahci_thaw(struct ata_port *ap)
        /* clear IRQ */
        tmp = readl(port_mmio + PORT_IRQ_STAT);
        writel(tmp, port_mmio + PORT_IRQ_STAT);
-       writel(1 << ap->id, mmio + HOST_IRQ_STAT);
+       writel(1 << ap->port_no, mmio + HOST_IRQ_STAT);
 
        /* turn IRQ back on */
        writel(DEF_PORT_IRQ, port_mmio + PORT_IRQ_MASK);