aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/bus.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2005-07-28 11:37:33 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2005-09-08 14:57:25 -0700
commit95a629657dbe28e44a312c47815b3dc3f1ce0970 (patch)
tree0e48656b5d61e26078a50af9f6766e52934fbedf /drivers/pci/bus.c
parent085ae41f66657a9655ce832b0a61832a06f0e1dc (diff)
downloadkernel_samsung_smdk4412-95a629657dbe28e44a312c47815b3dc3f1ce0970.tar.gz
kernel_samsung_smdk4412-95a629657dbe28e44a312c47815b3dc3f1ce0970.tar.bz2
kernel_samsung_smdk4412-95a629657dbe28e44a312c47815b3dc3f1ce0970.zip
[PATCH] PCI: start paying attention to a lot of pci function return values
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/bus.c')
-rw-r--r--drivers/pci/bus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c
index fb9a11243d2..a83ee0b8539 100644
--- a/drivers/pci/bus.c
+++ b/drivers/pci/bus.c
@@ -140,10 +140,11 @@ void __devinit pci_bus_add_devices(struct pci_bus *bus)
void pci_enable_bridges(struct pci_bus *bus)
{
struct pci_dev *dev;
+ int retval;
list_for_each_entry(dev, &bus->devices, bus_list) {
if (dev->subordinate) {
- pci_enable_device(dev);
+ retval = pci_enable_device(dev);
pci_set_master(dev);
pci_enable_bridges(dev->subordinate);
}