ide: use ATA_* defines instead of *_STAT and *_ERR ones
[GitHub/LineageOS/android_kernel_motorola_exynos9610.git] / drivers / ide / pci / ns87415.c
index ffefcd15196c709b690bc8348eb2950b5c71e7ea..17685f0ade1395f092916fb14b0b074600371d25 100644 (file)
@@ -274,9 +274,9 @@ static void __devinit init_hwif_ns87415 (ide_hwif_t *hwif)
                do {
                        udelay(50);
                        stat = hwif->tp_ops->read_status(hwif);
-                       if (stat == 0xff)
-                               break;
-               } while ((stat & BUSY_STAT) && --timeout);
+                       if (stat == 0xff)
+                               break;
+               } while ((stat & ATA_BUSY) && --timeout);
 #endif
        }