diff options
author | jhb <jhb@FreeBSD.org> | 2007-05-16 23:42:04 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2007-05-16 23:42:04 +0000 |
commit | a190fb02dce75cddff7fe28b681642f288dbaa0e (patch) | |
tree | de26813348576afe9e4c207e0d9ca8de27131efd /sys | |
parent | 69b332354e66fde4a92590f07764005892e1897f (diff) | |
download | FreeBSD-src-a190fb02dce75cddff7fe28b681642f288dbaa0e.zip FreeBSD-src-a190fb02dce75cddff7fe28b681642f288dbaa0e.tar.gz |
Don't completely skip pci_cfg_save() in the PCI nomatch routine if
the power_nodriver tunable is off. pci_cfg_save() already checks the
tunable internally, and no other callers of pci_cfg_save() check the
tunable.
Reviewed by: imp
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/pci.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 6f40d4a..2458863 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -2945,9 +2945,7 @@ pci_probe_nomatch(device_t dev, device_t child) } printf(" at device %d.%d (no driver attached)\n", pci_get_slot(child), pci_get_function(child)); - if (pci_do_power_nodriver) - pci_cfg_save(child, - (struct pci_devinfo *) device_get_ivars(child), 1); + pci_cfg_save(child, (struct pci_devinfo *)device_get_ivars(child), 1); return; } |