]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/ata/pata_via.c
pata_via: fix VT6410/6415/6330 detection issue
[karo-tx-linux.git] / drivers / ata / pata_via.c
index 3059ec017de3fde4c4f2100d99da286ccdf93836..c59b40710fbd2f42867328eb1261768ad80fa32b 100644 (file)
@@ -576,6 +576,10 @@ static int via_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
                        u8 rev = isa->revision;
                        pci_dev_put(isa);
 
+                       if ((id->device == 0x0415 || id->device == 0x3164) &&
+                           (config->id != id->device))
+                               continue;
+
                        if (rev >= config->rev_min && rev <= config->rev_max)
                                break;
                }
@@ -677,6 +681,7 @@ static const struct pci_device_id via[] = {
        { PCI_VDEVICE(VIA, 0x3164), },
        { PCI_VDEVICE(VIA, 0x5324), },
        { PCI_VDEVICE(VIA, 0xC409), VIA_IDFLAG_SINGLE },
+       { PCI_VDEVICE(VIA, 0x9001), VIA_IDFLAG_SINGLE },
 
        { },
 };