Browse Source

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>
Praveen Kalamegham 15 years ago
parent
commit
01b666df48
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/pci/hotplug/pciehp_pci.c

+ 1 - 1
drivers/pci/hotplug/pciehp_pci.c

@@ -137,7 +137,7 @@ int pciehp_unconfigure_device(struct slot *p_slot)
 					 "Cannot remove display device %s\n",
 					 "Cannot remove display device %s\n",
 					 pci_name(temp));
 					 pci_name(temp));
 				pci_dev_put(temp);
 				pci_dev_put(temp);
-				rc = EINVAL;
+				rc = -EINVAL;
 				break;
 				break;
 			}
 			}
 		}
 		}