diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-09-10 15:23:46 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-09-22 21:11:58 +0200 |
commit | 63f534b8bad91d46d2d1fbc76b97be521d9b5e03 (patch) | |
tree | 9b3c00ff1d90752cc355e1b670df875a75c3fe52 /drivers/hv | |
parent | 521a547ced6477c54b4b0cc206000406c221b4d6 (diff) | |
download | linux-63f534b8bad91d46d2d1fbc76b97be521d9b5e03.tar.gz linux-63f534b8bad91d46d2d1fbc76b97be521d9b5e03.tar.bz2 linux-63f534b8bad91d46d2d1fbc76b97be521d9b5e03.zip |
ACPI: PCI: Rework acpi_get_pci_dev()
The PCI device returned by acpi_get_pci_dev() needs to be registered,
so if it corresponds to an ACPI device object, the struct acpi_device
representing that object must be registered too and, moreover, it
should be the ACPI companion of the given PCI device. Thus it should
be sufficient to look for it in the ACPI device object's list of
physical nodes associated with it.
Modify the code accordingly.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv')
0 files changed, 0 insertions, 0 deletions