On Sat, Sep 10, 2022 at 03:23:46PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx> > > 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@xxxxxxxxx> > --- > drivers/acpi/pci_root.c | 81 ++++++++---------------------------------------- > 1 file changed, 15 insertions(+), 66 deletions(-) Nice, less code is always better :) Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>