From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from acsinet15.oracle.com ([141.146.126.227]:41815 "EHLO acsinet15.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756124Ab2BYVyy (ORCPT ); Sat, 25 Feb 2012 16:54:54 -0500 From: Yinghai Lu To: Jesse Barnes Cc: Linus Torvalds , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Yinghai Lu Subject: [PATCH 4/4] PCI: acpihp user __pci_remove_bus_device instead Date: Sat, 25 Feb 2012 13:54:23 -0800 Message-Id: <1330206863-31381-5-git-send-email-yinghai@kernel.org> In-Reply-To: <1330206863-31381-1-git-send-email-yinghai@kernel.org> References: <1330206863-31381-1-git-send-email-yinghai@kernel.org> Sender: linux-pci-owner@vger.kernel.org List-ID: pci_stop_bus_device get called before in the same loop. Signed-off-by: Yinghai Lu --- drivers/pci/hotplug/acpiphp_glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6/drivers/pci/hotplug/acpiphp_glue.c =================================================================== --- linux-2.6.orig/drivers/pci/hotplug/acpiphp_glue.c +++ linux-2.6/drivers/pci/hotplug/acpiphp_glue.c @@ -910,7 +910,7 @@ static int disable_device(struct acpiphp disable_bridges(pdev->subordinate); pci_disable_device(pdev); } - pci_stop_and_remove_bus_device(pdev); + __pci_remove_bus_device(pdev); pci_dev_put(pdev); } }