diff mbox

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

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

Commit Message

Praveen Kalamegham July 12, 2010, 4:12 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;
 			}
 		}