diff options
Diffstat (limited to 'drivers/ata/sata_mv.c')
-rw-r--r-- | drivers/ata/sata_mv.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index 080b8362f8d6..f5333cec2dfa 100644 --- a/drivers/ata/sata_mv.c +++ b/drivers/ata/sata_mv.c | |||
@@ -1716,14 +1716,16 @@ static void mv_host_intr(struct ata_host *host, u32 relevant, unsigned int hc) | |||
1716 | VPRINTK("ENTER, hc%u relevant=0x%08x HC IRQ cause=0x%08x\n", | 1716 | VPRINTK("ENTER, hc%u relevant=0x%08x HC IRQ cause=0x%08x\n", |
1717 | hc, relevant, hc_irq_cause); | 1717 | hc, relevant, hc_irq_cause); |
1718 | 1718 | ||
1719 | for (port = port0; port < port0 + last_port; port++) { | 1719 | for (port = port0; port < last_port; port++) { |
1720 | struct ata_port *ap = host->ports[port]; | 1720 | struct ata_port *ap = host->ports[port]; |
1721 | struct mv_port_priv *pp = ap->private_data; | 1721 | struct mv_port_priv *pp; |
1722 | int have_err_bits, hard_port, shift; | 1722 | int have_err_bits, hard_port, shift; |
1723 | 1723 | ||
1724 | if ((!ap) || (ap->flags & ATA_FLAG_DISABLED)) | 1724 | if ((!ap) || (ap->flags & ATA_FLAG_DISABLED)) |
1725 | continue; | 1725 | continue; |
1726 | 1726 | ||
1727 | pp = ap->private_data; | ||
1728 | |||
1727 | shift = port << 1; /* (port * 2) */ | 1729 | shift = port << 1; /* (port * 2) */ |
1728 | if (port >= MV_PORTS_PER_HC) { | 1730 | if (port >= MV_PORTS_PER_HC) { |
1729 | shift++; /* skip bit 8 in the HC Main IRQ reg */ | 1731 | shift++; /* skip bit 8 in the HC Main IRQ reg */ |