Skip to content

Commit 7ddf5e3

Browse files
committed
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>
1 parent 53725c4 commit 7ddf5e3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/cpufreq/longhaul.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,9 +668,9 @@ static acpi_status longhaul_walk_callback(acpi_handle obj_handle,
668668
u32 nesting_level,
669669
void *context, void **return_value)
670670
{
671-
struct acpi_device *d;
671+
struct acpi_device *d = acpi_fetch_acpi_dev(obj_handle);
672672

673-
if (acpi_bus_get_device(obj_handle, &d))
673+
if (!d)
674674
return 0;
675675

676676
*return_value = acpi_driver_data(d);

0 commit comments

Comments
 (0)