mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
cpufreq: longhaul: 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 <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
53725c4cbd
commit
7ddf5e3763
1 changed files with 2 additions and 2 deletions
|
@ -668,9 +668,9 @@ static acpi_status longhaul_walk_callback(acpi_handle obj_handle,
|
||||||
u32 nesting_level,
|
u32 nesting_level,
|
||||||
void *context, void **return_value)
|
void *context, void **return_value)
|
||||||
{
|
{
|
||||||
struct acpi_device *d;
|
struct acpi_device *d = acpi_fetch_acpi_dev(obj_handle);
|
||||||
|
|
||||||
if (acpi_bus_get_device(obj_handle, &d))
|
if (!d)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
*return_value = acpi_driver_data(d);
|
*return_value = acpi_driver_data(d);
|
||||||
|
|
Loading…
Reference in a new issue