From: Yinghai Lu Date: Sun, 5 Feb 2012 06:55:01 +0000 (-0800) Subject: PCI: Fix /sys warning when sriov enabled and card is hot removed X-Git-Tag: v3.4-rc1~114^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09cedbef4428580a09b342a7a92a262cfb5cbf25;p=pandora-kernel.git PCI: Fix /sys warning when sriov enabled and card is hot removed sysfs is a bit stricter now and emits warnings in more cases. For SRIOV hotplug, we are calling pci_stop_dev() for each VF first (after we update pci_stop_bus_devices) which remove each VF subdir. So double check the VF dir in /sys before trying to remove the physfn link. Signed-of-by: Yinghai Lu Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed