diff mbox

PCI: hotplug: pciehp: Fixed return value sign for pciehp_unconfigure_device

Message ID 1274387542-29641-1-git-send-email-praveen@nextio.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Praveen Kalamegham May 20, 2010, 8:32 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/pci/hotplug/pciehp_pci.c b/drivers/pci/hotplug/pciehp_pci.c
index 2fce726..a4031df 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)
 					 "Cannot remove display device %s\n",
 					 pci_name(temp));
 				pci_dev_put(temp);
-				rc = EINVAL;
+				rc = -EINVAL;
 				break;
 			}
 		}