forked from Minki/linux
PNP update for 5.18-rc1
Replace acpi_bus_get_device() in the PNP code with acpi_fetch_acpi_dev() which is better. -----BEGIN PGP SIGNATURE----- iQJGBAABCAAwFiEE4fcc61cGeeHD/fCwgsRv/nhiVHEFAmI4pdQSHHJqd0Byand5 c29ja2kubmV0AAoJEILEb/54YlRx7rIP/iY9kLJ2YdrqDq847BADF+2T4q0AUFvV 1jKdES04uODoET0tiE3+As0XSXKCt8o2JiVrYg6amkUtgC3VqsU6YfFhTiOGSfsV ntKu2/WiXM3JqYG9S7QbDQ6FFltx5NUs6U0wK+dbWqGqLn+woXHUg2MBmbQffSU0 NSXn9hbIpLcZbskEbiLampGHJz++2CyGqBkNDV4Ro+5ghnOQiF3rDSBgUGmz8O7H a1s205Z82n5JffzIsRrP32eQf+UsEUK/sor63WnuOUxSyeQHku7CP5XtgA/9uTE1 6Z20kygGfre/5WCjriqgSFEQNUh1ZKCWBaXGfY3kwa0enMkF32UL07glCCS2ax8Q he+qDhSwp/R2oiHdZaJnBxQ+ekCqgr/aZRgomtdJH674OIvDLcg17RnUKj3Cjgz5 LdXc4fzW0xkyX1RV7HqinzRW0SsYgz5ZZXWbypu7tsrh/F61d1VOlqmyk/2xFWP6 GDVc3+jLs8sDHNb+t8nMP4HgcJJkf1HKDp6VNBeJ+M4Byoas3QUTKjbQ4/yRaZpf k8QSiI53KoiZNgWeLgOr/dct1r3QhXDsbt6fJPdm26ev5qB1b3lcFuMA9kaLrl5q 2fpmbPWQRxSjx+coa6rcH+kOirdoPQk1PWHjCkJJydYIcKCM6rlWgsdnYLECLAz/ CWluCF541+0L =6QaO -----END PGP SIGNATURE----- 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()
This commit is contained in:
commit
f400bea2d4
@ -287,9 +287,9 @@ static acpi_status __init pnpacpi_add_device_handler(acpi_handle handle,
|
||||
u32 lvl, void *context,
|
||||
void **rv)
|
||||
{
|
||||
struct acpi_device *device;
|
||||
struct acpi_device *device = acpi_fetch_acpi_dev(handle);
|
||||
|
||||
if (acpi_bus_get_device(handle, &device))
|
||||
if (!device)
|
||||
return AE_CTRL_DEPTH;
|
||||
if (acpi_is_pnp_device(device))
|
||||
pnpacpi_add_device(device);
|
||||
|
Loading…
Reference in New Issue
Block a user