diff options
author | jkim <jkim@FreeBSD.org> | 2009-04-27 21:45:05 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2009-04-27 21:45:05 +0000 |
commit | 28a14333c36cd488eeb0f7597633a62b7585987f (patch) | |
tree | c61a5d3a409aff3f4099e159fee9d36073cc3948 /sys | |
parent | 4d22ff6eef0381ec2b0a56f18dac875f4f490339 (diff) | |
download | FreeBSD-src-28a14333c36cd488eeb0f7597633a62b7585987f.zip FreeBSD-src-28a14333c36cd488eeb0f7597633a62b7585987f.tar.gz |
Use cached progif instead of reading it again.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ata/chipsets/ata-ahci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/chipsets/ata-ahci.c b/sys/dev/ata/chipsets/ata-ahci.c index 937ace5..e89acef 100644 --- a/sys/dev/ata/chipsets/ata-ahci.c +++ b/sys/dev/ata/chipsets/ata-ahci.c @@ -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) |