mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Use cached progif instead of reading it again.
This commit is contained in:
parent
c6b8ee96f6
commit
c39437eb46
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ ata_ahci_probe(device_t dev)
|
|||
return (ENXIO);
|
||||
|
||||
/* is this PCI device flagged as an AHCI compliant chip ? */
|
||||
if (pci_read_config(dev, PCIR_PROGIF, 1) != PCIP_STORAGE_SATA_AHCI_1_0)
|
||||
if (pci_get_progif(dev) != PCIP_STORAGE_SATA_AHCI_1_0)
|
||||
return (ENXIO);
|
||||
|
||||
if (bootverbose)
|
||||
|
|
|
|||
Loading…
Reference in a new issue