diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-02-04 00:45:13 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-02-06 17:31:52 +0100 |
commit | 1f7c164b6f2a8a028bfc36097fc42bf061c5212e (patch) | |
tree | e2ef3cf5ce41c01541a3557e9d1c5847399c37a7 /drivers/pci/probe.c | |
parent | 1a699476e25814343766342672c655fb135224cc (diff) | |
download | linux-1f7c164b6f2a8a028bfc36097fc42bf061c5212e.tar.gz linux-1f7c164b6f2a8a028bfc36097fc42bf061c5212e.tar.bz2 linux-1f7c164b6f2a8a028bfc36097fc42bf061c5212e.zip |
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 <rafael.j.wysocki@intel.com>
Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/pci/probe.c')
0 files changed, 0 insertions, 0 deletions