From: Rafael J. Wysocki Date: Sat, 13 Jul 2013 21:27:23 +0000 (+0200) Subject: ACPI / hotplug / PCI: Always return success after adding a function X-Git-Tag: v3.12-rc1~178^2~16^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e862c51904ddd12be2d256513160e1f87beafee;p=pandora-kernel.git ACPI / hotplug / PCI: Always return success after adding a function When a new ACPIPHP function is added by register_slot() and the notify handler cannot be installed for it, register_slot() returns an error status without cleaning up, which causes the entire namespace walk in acpiphp_enumerate_slots() to be aborted, although it still may be possible to successfully install the function notify handler for other device objects under the given brigde. To address this issue make register_slot() return success after a new function has been added, even if the addition of the notify handler for it has failed. Signed-off-by: Rafael J. Wysocki Tested-by: Mika Westerberg --- Reading git-diff-tree failed