ata: hpt366: fix incorrect mask when checking at cmd_high_time
[sfrench/cifs-2.6.git] / drivers / ata / pata_hpt366.c
index e5fb7525a5df4595c0ba8f969ee4e74d6639f6a7..a219a503c22959d3e020d90205fbe74df7fbd33f 100644 (file)
@@ -368,7 +368,7 @@ static int hpt36x_init_one(struct pci_dev *dev, const struct pci_device_id *id)
 
        /* PCI clocking determines the ATA timing values to use */
        /* info_hpt366 is safe against re-entry so we can scribble on it */
-       switch ((reg1 & 0x700) >> 8) {
+       switch ((reg1 & 0xf00) >> 8) {
        case 9:
                hpriv = &hpt366_40;
                break;