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:
parent
d193b870a5
commit
81c8102c4c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user