From patchwork Mon Jul 12 16:12:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Praveen Kalamegham X-Patchwork-Id: 111471 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6CGMOtl000446 for ; Mon, 12 Jul 2010 16:22:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756364Ab0GLQWV (ORCPT ); Mon, 12 Jul 2010 12:22:21 -0400 Received: from relay-6.dlfw.twtelecom.net ([216.136.82.72]:38516 "EHLO relay-6.dlfw.twtelecom.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756362Ab0GLQWV (ORCPT ); Mon, 12 Jul 2010 12:22:21 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 12 Jul 2010 16:22:24 +0000 (UTC) X-Greylist: delayed 583 seconds by postgrey-1.27 at vger.kernel.org; Mon, 12 Jul 2010 12:22:21 EDT Received: from localhost (unknown [127.0.0.1]) by relay-6.dlfw.twtelecom.net (Postfix) with ESMTP id CF6E779805C for ; Mon, 12 Jul 2010 10:12:34 -0600 (MDT) X-Virus-Scanned: amavisd-new at twtelecom.net Received: from relay-6.dlfw.twtelecom.net ([127.0.0.1]) by localhost (relay-6.dlfw.twtelecom.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Wa-sZtFhGT2k for ; Mon, 12 Jul 2010 10:12:32 -0600 (MDT) Received: from ad-1.austin.nextio (unknown [207.71.25.106]) by relay-6.dlfw.twtelecom.net (Postfix) with ESMTP id A1182798060 for ; Mon, 12 Jul 2010 10:12:32 -0600 (MDT) Received: from ocho.austin.nextio ([10.30.0.15]) by ad-1.austin.nextio with Microsoft SMTPSVC(6.0.3790.4675); Mon, 12 Jul 2010 11:12:32 -0500 Received: by ocho.austin.nextio (Postfix, from userid 567) id 29399628082; Mon, 12 Jul 2010 11:12:32 -0500 (CDT) From: Praveen Kalamegham To: jbarnes@virtuousgeek.org Cc: linux-pci@vger.kernel.org, praveen@nextio.com Subject: [PATCH] PCI: hotplug: pciehp: Fixed return value sign for pciehp_unconfigure_device Date: Mon, 12 Jul 2010 11:12:25 -0500 Message-Id: <1278951145-27314-1-git-send-email-praveen@nextio.com> X-Mailer: git-send-email 1.6.5 X-OriginalArrivalTime: 12 Jul 2010 16:12:32.0294 (UTC) FILETIME=[086B7460:01CB21DD] Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org 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; } }