ata_generic: Skip is_intel_ider() check when ata_generic=1 is set
authorAndi Kleen <ak@linux.intel.com>
Fri, 11 May 2012 16:33:23 +0000 (09:33 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 22 May 2012 19:54:13 +0000 (15:54 -0400)
When ata_generic_ide=1 is set don't do the is_intel_ider() magic
check. We found at least one box who needed that.

Cc: alan@linux.intel.com
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/ata_generic.c

index 7df56ec..aae1156 100644 (file)
@@ -177,7 +177,7 @@ static int ata_generic_init_one(struct pci_dev *dev, const struct pci_device_id
        if ((id->driver_data & ATA_GEN_CLASS_MATCH) && all_generic_ide == 0)
                return -ENODEV;
 
-       if (id->driver_data & ATA_GEN_INTEL_IDER)
+       if ((id->driver_data & ATA_GEN_INTEL_IDER) && !all_generic_ide)
                if (!is_intel_ider(dev))
                        return -ENODEV;