From: Rafael J. Wysocki Date: Thu, 28 Nov 2013 22:58:08 +0000 (+0100) Subject: PCI / ACPI: Use acpi_find_child_device() for child devices lookup X-Git-Tag: v3.14-rc1~107^2~11^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ce79d201358d36f13d13b01d8614bd8e646036c;p=pandora-kernel.git PCI / ACPI: Use acpi_find_child_device() for child devices lookup It is much more efficient to use acpi_find_child_device() for child devices lookup in acpi_pci_find_device() and pass ACPI_COMPANION(dev->parent) to it directly instead of obtaining ACPI_HANDLE() of ACPI_COMPANION(dev->parent) and passing it to acpi_find_child() which has to run acpi_bus_get_device() to obtain ACPI_COMPANION(dev->parent) from that again. Signed-off-by: Rafael J. Wysocki Reviewed-by: Aaron Lu --- Reading git-diff-tree failed