diff options
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/ahci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index e2796fb40eb7..32cfaa89dc7c 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c | |||
@@ -431,7 +431,7 @@ static const struct pci_device_id ahci_pci_tbl[] = { | |||
431 | 431 | ||
432 | /* Generic, PCI class code for AHCI */ | 432 | /* Generic, PCI class code for AHCI */ |
433 | { PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, | 433 | { PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, |
434 | 0x010601, 0xffffff, board_ahci }, | 434 | PCI_CLASS_STORAGE_SATA_AHCI, 0xffffff, board_ahci }, |
435 | 435 | ||
436 | { } /* terminate list */ | 436 | { } /* terminate list */ |
437 | }; | 437 | }; |
@@ -1619,11 +1619,11 @@ static void ahci_print_info(struct ata_probe_ent *probe_ent) | |||
1619 | speed_s = "?"; | 1619 | speed_s = "?"; |
1620 | 1620 | ||
1621 | pci_read_config_word(pdev, 0x0a, &cc); | 1621 | pci_read_config_word(pdev, 0x0a, &cc); |
1622 | if (cc == 0x0101) | 1622 | if (cc == PCI_CLASS_STORAGE_IDE) |
1623 | scc_s = "IDE"; | 1623 | scc_s = "IDE"; |
1624 | else if (cc == 0x0106) | 1624 | else if (cc == PCI_CLASS_STORAGE_SATA) |
1625 | scc_s = "SATA"; | 1625 | scc_s = "SATA"; |
1626 | else if (cc == 0x0104) | 1626 | else if (cc == PCI_CLASS_STORAGE_RAID) |
1627 | scc_s = "RAID"; | 1627 | scc_s = "RAID"; |
1628 | else | 1628 | else |
1629 | scc_s = "unknown"; | 1629 | scc_s = "unknown"; |