Message ID | 2231987.ElGaqSPkdT@kreacher |
---|---|
State | New |
Headers | show |
Series | spi: Replace acpi_bus_get_device() | expand |
Index: linux-pm/drivers/spi/spi.c =================================================================== --- linux-pm.orig/drivers/spi/spi.c +++ linux-pm/drivers/spi/spi.c @@ -2480,10 +2480,10 @@ static acpi_status acpi_register_spi_dev static acpi_status acpi_spi_add_device(acpi_handle handle, u32 level, void *data, void **return_value) { + struct acpi_device *adev = acpi_fetch_acpi_dev(handle); struct spi_controller *ctlr = data; - struct acpi_device *adev; - if (acpi_bus_get_device(handle, &adev)) + if (!adev) return AE_OK; return acpi_register_spi_device(ctlr, adev);