diff options
author | Praveen Kalamegham <praveen@nextio.com> | 2010-05-20 16:32:22 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-07-30 12:29:15 -0400 |
commit | 01b666df487b80c956cef3ce3253776ddeebd41e (patch) | |
tree | e3714b5a3bf6f4b6bc3a049c4f7e4a045dcd1f30 /drivers/pci | |
parent | 41cd766b065970ff6f6c89dd1cf55fa706c84a3d (diff) |
PCI hotplug: pciehp: Fixed return value sign for pciehp_unconfigure_device
pciehp_unconfigure_device() should return -EINVAL, not EINVAL.
Signed-off-by: Praveen Kalamegham <praveen@nextio.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/hotplug/pciehp_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/pciehp_pci.c b/drivers/pci/hotplug/pciehp_pci.c index 2fce726758d2..a4031dfe938e 100644 --- a/drivers/pci/hotplug/pciehp_pci.c +++ b/drivers/pci/hotplug/pciehp_pci.c | |||
@@ -137,7 +137,7 @@ int pciehp_unconfigure_device(struct slot *p_slot) | |||
137 | "Cannot remove display device %s\n", | 137 | "Cannot remove display device %s\n", |
138 | pci_name(temp)); | 138 | pci_name(temp)); |
139 | pci_dev_put(temp); | 139 | pci_dev_put(temp); |
140 | rc = EINVAL; | 140 | rc = -EINVAL; |
141 | break; | 141 | break; |
142 | } | 142 | } |
143 | } | 143 | } |