From: Jiang Liu Date: Fri, 12 Apr 2013 05:44:18 +0000 (+0000) Subject: PCI: acpiphp: Remove all functions even if function 0 doesn't exist X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~143^2~3^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a0e40beefc20852191ed65d53e1b82d95ac11b8;p=pandora-kernel.git PCI: acpiphp: Remove all functions even if function 0 doesn't exist Currently function disable_device() detects slot state by checking existence of PCI function 0. It's unreliable because the PCI device for function 0 may be removed through the sysfs interface. If that happens, it will cause powering off a hotplug slot without destroying all PCI devices. On the other hand, it won't hurt us except wasting some computation power if the check is removed, because all code of disable_device() is self-protected. So remove the check. Signed-off-by: Jiang Liu Signed-off-by: Yijing Wang Signed-off-by: Bjorn Helgaas Reviewed-by: Yinghai Lu Cc: "Rafael J. Wysocki" Cc: Toshi Kani --- Reading git-diff-tree failed