diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-09-18 15:02:23 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-09-27 17:01:37 +0200 |
commit | 2ef5236660b677db15527b6d6235af4ce38ea0e3 (patch) | |
tree | bd93836e9c8523226dac046afcd40b3a7ecea6d9 /net/mptcp/token.c | |
parent | ACPI: glue: Drop cleanup callback from struct acpi_bus_type (diff) | |
download | linux-2ef5236660b677db15527b6d6235af4ce38ea0e3.tar.xz linux-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 'net/mptcp/token.c')
0 files changed, 0 insertions, 0 deletions