Re: [PATCH] cpufreq: longhaul: Replace acpi_bus_get_device()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 26-01-22, 20:43, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
> 
> 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@xxxxxxxxx>
> ---
>  drivers/cpufreq/longhaul.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> Index: linux-pm/drivers/cpufreq/longhaul.c
> ===================================================================
> --- linux-pm.orig/drivers/cpufreq/longhaul.c
> +++ linux-pm/drivers/cpufreq/longhaul.c
> @@ -668,9 +668,9 @@ static acpi_status longhaul_walk_callbac
>  					  u32 nesting_level,
>  					  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_value = acpi_driver_data(d);

Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>

-- 
viresh



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux