aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/pata_hpt3x2n.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_hpt3x2n.c b/drivers/ata/pata_hpt3x2n.c
index 3d59fe0a408d..2ab9fd6c597f 100644
--- a/drivers/ata/pata_hpt3x2n.c
+++ b/drivers/ata/pata_hpt3x2n.c
@@ -133,7 +133,7 @@ static int hpt3x2n_cable_detect(struct ata_port *ap)
133 /* Restore state */ 133 /* Restore state */
134 pci_write_config_byte(pdev, 0x5B, scr2); 134 pci_write_config_byte(pdev, 0x5B, scr2);
135 135
136 if (ata66 & (1 << ap->port_no)) 136 if (ata66 & (2 >> ap->port_no))
137 return ATA_CBL_PATA40; 137 return ATA_CBL_PATA40;
138 else 138 else
139 return ATA_CBL_PATA80; 139 return ATA_CBL_PATA80;