summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pcie
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/pcie
parent085ae41f66657a9655ce832b0a61832a06f0e1dc (diff)
downloadblackbird-op-linux-95a629657dbe28e44a312c47815b3dc3f1ce0970.tar.gz
blackbird-op-linux-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/pcie')
-rw-r--r--drivers/pci/pcie/portdrv_pci.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/pci/pcie/portdrv_pci.c b/drivers/pci/pcie/portdrv_pci.c
index 30bac7ed7c16..3c565ce7f77b 100644
--- a/drivers/pci/pcie/portdrv_pci.c
+++ b/drivers/pci/pcie/portdrv_pci.c
@@ -90,15 +90,19 @@ static void pcie_portdrv_save_config(struct pci_dev *dev)
pci_save_msi_state(dev);
}
-static void pcie_portdrv_restore_config(struct pci_dev *dev)
+static int pcie_portdrv_restore_config(struct pci_dev *dev)
{
struct pcie_port_device_ext *p_ext = pci_get_drvdata(dev);
+ int retval;
pci_restore_state(dev);
if (p_ext->interrupt_mode == PCIE_PORT_MSI_MODE)
pci_restore_msi_state(dev);
- pci_enable_device(dev);
+ retval = pci_enable_device(dev);
+ if (retval)
+ return retval;
pci_set_master(dev);
+ return 0;
}
/*
OpenPOWER on IntegriCloud