From: Yinghai Lu Date: Wed, 23 Nov 2011 05:06:53 +0000 (-0800) Subject: PCI: Only call pci_stop_bus_device() one time for child devices at remove X-Git-Tag: v3.3-rc1~101^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79cc9601c3e42b4f0650fe7e69132ebce7ab48f9;p=pandora-kernel.git PCI: Only call pci_stop_bus_device() one time for child devices at remove During debugging pcie hotplug with SRIOV with pcie switch, I found pci_stop_bus_device() is called several times for some child devices. So change original pci_remove_bus_device() to __pci_remove_bus_device(), and make it only do remove work, and add a new pci_remove_bus_device that calls pci_stop_bus_device() one time, and then call __pci_remove_bus_device(). Signed-off-by: Yinghai Lu Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed