UPSTREAM: PCI: rockchip: cleanup for rockchip pcie driver
[firefly-linux-kernel-4.4.55.git] / drivers / ide / ide-probe.c
index a3d3b1733c49c667f7f1495d9dfef23623e28fa0..0b63facd1d87d0def87864ee946ef92e179e3d1e 100644 (file)
@@ -273,7 +273,7 @@ int ide_dev_read_id(ide_drive_t *drive, u8 cmd, u16 *id, int irq_ctx)
            (hwif->host_flags & IDE_HFLAG_BROKEN_ALTSTATUS) == 0) {
                a = tp_ops->read_altstatus(hwif);
                s = tp_ops->read_status(hwif);
-               if ((a ^ s) & ~ATA_IDX)
+               if ((a ^ s) & ~ATA_SENSE)
                        /* ancient Seagate drives, broken interfaces */
                        printk(KERN_INFO "%s: probing with STATUS(0x%02x) "
                                         "instead of ALTSTATUS(0x%02x)\n",