From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3362C433EF for ; Wed, 9 Feb 2022 06:30:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235043AbiBIG2j (ORCPT ); Wed, 9 Feb 2022 01:28:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235882AbiBIG1K (ORCPT ); Wed, 9 Feb 2022 01:27:10 -0500 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23C3BC0610C5 for ; Tue, 8 Feb 2022 22:27:13 -0800 (PST) Received: by mail-pj1-x1032.google.com with SMTP id v13-20020a17090ac90d00b001b87bc106bdso4169083pjt.4 for ; Tue, 08 Feb 2022 22:27:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=oZptq99McEmSTWKDkacQuJxWYVLFif45IaPqyzpBkjk=; b=ZYxOJU1r53Sj8pg5AZsbPSGhkjg65dtEt1RJxdfnMMiKHKUSYkSld3E8PHY94rLMI0 fsv2eFO8TFjNH00vk1vlHcQIpT5R7n9+eWE2+KexOeiGjc3tLt/yYfxW+4l4gpm2jKIO G7rHKbofp1DvplhR4iUO3ti5njWGnVzsDQ1Ziet+vixWy+lW7VKrR3LG2OcWNzSU4Z11 stynxqFXBQj8a+sC3/Fg5+lGdTYUj3FlWvqNAjIYRFksQUqJZ6IUrF0Vu+noMn6L5Ny9 3J369+2GtHNcseI4qk2HeWyGd07eHutnjoqLM1iENmOaBrJEQJr+l0YjG5cC+Y2wz+CS WvGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=oZptq99McEmSTWKDkacQuJxWYVLFif45IaPqyzpBkjk=; b=dlRKmuM9Dc1rYqDq3X98WVQG3/uDBXETzWLlSYi7w5l9gWLf8FhE6KGipJYbee+CQo uCNTzbaxQ8wsk3cqSl49LNG0LKt9NNs7tfgC7xEJ7lLmTdC305NWx41GBOchwVNHcSQI HiJbNmjQrESjYILhqccxmhqpXHrPpd9RCdzLWu0TiOIFMx1Ehvd0YsNco1VsiQxICLDB Nt+PG/d4j3YCVIjPplWTWaTW90cKMxSHN4sJK+w3bPVngQ7Gg9paE8P0aptH0hdYtTv+ xPfY89jMsKjZKMaWtWdO2QGlydW44aiVrfSTtZN8jPaHOFA8/MZmMAJjHUU9AoPRLpus 053Q== X-Gm-Message-State: AOAM5315sf4yJgRQqRe4vJPW2ErpMnCyusySdiWlBAEoHen+rX1pYvSg CjyFxHrTtcXRatPyesvQ2VRB7w== X-Google-Smtp-Source: ABdhPJy8WOCryenGRsq0jVJwJojuWywhhTwy7/5rrmGD0U9AQtw2NK+Q2eas+0f64dbEjH9qRfCTkQ== X-Received: by 2002:a17:90b:1d88:: with SMTP id pf8mr899349pjb.162.1644388032609; Tue, 08 Feb 2022 22:27:12 -0800 (PST) Received: from localhost ([136.185.132.167]) by smtp.gmail.com with ESMTPSA id g12sm1029213pfj.148.2022.02.08.22.27.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 22:27:11 -0800 (PST) Date: Wed, 9 Feb 2022 11:57:10 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: Linux PM , LKML , Linux ACPI Subject: Re: [PATCH] cpufreq: longhaul: Replace acpi_bus_get_device() Message-ID: <20220209062710.5fwg52fjb2jkerzr@vireshk-i7> References: <4700827.GXAFRqVoOG@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4700827.GXAFRqVoOG@kreacher> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26-01-22, 20:43, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > 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 > --- > 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