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
This commit is contained in:
John Baldwin 2007-05-16 23:42:04 +00:00
parent d193b870a5
commit 81c8102c4c

View File

@ -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;
}