From: Rafael J. Wysocki Date: Mon, 3 Feb 2014 23:45:13 +0000 (+0100) Subject: ACPI / hotplug / PCI: Rework acpiphp_check_host_bridge() X-Git-Tag: v3.15-rc1~151^2~14^2~3^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f7c164b6f2a8a028bfc36097fc42bf061c5212e;p=pandora-kernel.git ACPI / hotplug / PCI: Rework acpiphp_check_host_bridge() Since the only existing caller of acpiphp_check_host_bridge(), which is acpi_pci_root_scan_dependent(), already has a struct acpi_device pointer needed to obtain the ACPIPHP context, it doesn't make sense to execute acpi_bus_get_device() on its handle in acpiphp_handle_to_bridge() just in order to get that pointer back. For this reason, modify acpiphp_check_host_bridge() to take a struct acpi_device pointer as its argument and rearrange the code accordingly. Signed-off-by: Rafael J. Wysocki Tested-by: Mika Westerberg --- Reading git-diff-tree failed