diff mbox

pci/bus.c: check return value of pci_enable_device()

Message ID 20100618020232.GA425@host-a-229.ustcsz.edu.cn (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Junchang Wang June 18, 2010, 2:02 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c
index 628ea20..4e71777 100644
--- a/drivers/pci/bus.c
+++ b/drivers/pci/bus.c
@@ -240,6 +240,9 @@  void pci_enable_bridges(struct pci_bus *bus)
 		if (dev->subordinate) {
 			if (!pci_is_enabled(dev)) {
 				retval = pci_enable_device(dev);
+				if (retval)
+					dev_err(&dev->dev, "Error opening "
+							"device, continuing\n");
 				pci_set_master(dev);
 			}
 			pci_enable_bridges(dev->subordinate);