mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
PNP: Replace acpi_bus_get_device()
Replace acpi_bus_get_device() that is going to be dropped with acpi_fetch_acpi_dev(). No intentional functional impact. Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
1 parent
26291c54e1
commit
ed945296bb
1 file changed
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user