Commit 9392cffb authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

PCI: remove kernel log message about drivers not calling pci_disable_device()

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 4da7c3e3
......@@ -271,17 +271,14 @@ static int pci_device_remove(struct device * dev)
pci_dev->driver = NULL;
}
#ifdef CONFIG_DEBUG_KERNEL
/*
* If the driver decides to stop using the device, it should
* call pci_disable_device().
* We would love to complain here if pci_dev->is_enabled is set, that
* the driver should have called pci_disable_device(), but the
* unfortunate fact is there are too many odd BIOS and bridge setups
* that don't like drivers doing that all of the time.
* Oh well, we can dream of sane hardware when we sleep, no matter how
* horrible the crap we have to deal with is when we are awake...
*/
if (pci_dev->is_enabled) {
dev_warn(&pci_dev->dev, "Device was removed without properly "
"calling pci_disable_device(). This may need fixing.\n");
/* WARN_ON(1); */
}
#endif /* CONFIG_DEBUG_KERNEL */
pci_dev_put(pci_dev);
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment