aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci-mid.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-09-18 15:02:23 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-09-27 17:01:37 +0200
commit2ef5236660b677db15527b6d6235af4ce38ea0e3 (patch)
treebd93836e9c8523226dac046afcd40b3a7ecea6d9 /drivers/pci/pci-mid.c
parentACPI: glue: Drop cleanup callback from struct acpi_bus_type (diff)
downloadlinux-dev-2ef5236660b677db15527b6d6235af4ce38ea0e3.tar.xz
linux-dev-2ef5236660b677db15527b6d6235af4ce38ea0e3.zip
ACPI: glue: Look for ACPI bus type only if ACPI companion is not known
Notice that it is not necessary to look for the "ACPI bus type" of the device in acpi_device_notify() if the device's ACPI companion is set upfront, so modify the code to do that lookup only if it is necessary to find the ACPI companion. Also notice that if the device's ACPI companion is not set upfront in acpi_device_notify(), the device cannot be either a PCI one or a platform one, so check for these bus types only if the device's ACPI companion is set. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Tested-by: Ferry Toth <fntoth@gmail.com>
Diffstat (limited to 'drivers/pci/pci-mid.c')
0 files changed, 0 insertions, 0 deletions