Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'pnp-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

Pull PnP update from Rafael Wysocki:
"Replace acpi_bus_get_device() in the PNP code with
acpi_fetch_acpi_dev() which is better"

* tag 'pnp-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
PNP: Replace acpi_bus_get_device()

+2 -2
+2 -2
drivers/pnp/pnpacpi/core.c
··· 287 287 u32 lvl, void *context, 288 288 void **rv) 289 289 { 290 - struct acpi_device *device; 290 + struct acpi_device *device = acpi_fetch_acpi_dev(handle); 291 291 292 - if (acpi_bus_get_device(handle, &device)) 292 + if (!device) 293 293 return AE_CTRL_DEPTH; 294 294 if (acpi_is_pnp_device(device)) 295 295 pnpacpi_add_device(device);