svn commit: r191601 - head/sys/dev/ata/chipsets
Jung-uk Kim
jkim at FreeBSD.org
Mon Apr 27 21:45:06 UTC 2009
Author: jkim
Date: Mon Apr 27 21:45:05 2009
New Revision: 191601
URL: http://svn.freebsd.org/changeset/base/191601
Log:
Use cached progif instead of reading it again.
Modified:
head/sys/dev/ata/chipsets/ata-ahci.c
Modified: head/sys/dev/ata/chipsets/ata-ahci.c
==============================================================================
--- head/sys/dev/ata/chipsets/ata-ahci.c Mon Apr 27 21:34:15 2009 (r191600)
+++ head/sys/dev/ata/chipsets/ata-ahci.c Mon Apr 27 21:45:05 2009 (r191601)
@@ -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)
More information about the svn-src-all
mailing list