Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1842243pxb; Wed, 9 Feb 2022 05:46:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYMg7D67I7zbrRPVjxUKi12HiLloKBELfidrbqYLquqKFJwuBWnVxOQIK5YH9KxXGTTDy9 X-Received: by 2002:a63:565f:: with SMTP id g31mr1952160pgm.167.1644414373542; Wed, 09 Feb 2022 05:46:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644414373; cv=none; d=google.com; s=arc-20160816; b=uVfi5Im5t95ugeYsQbDobJKVdP8S4n6tAoeS1uJ0XlU1UvvEy6tnlXFN1DZke8KZVM YmvcpvIEvcNuHhuVH5XNzTiAC6uj/WPyTW0bigOSp6NbZPby7YoUZWC2Dk1o4Pwg9UoF Iv/wtcTVD9EsCdUDyzCxoxFnP+/DT6WCPKYbHrxtqr+0kR9pCFlRF5+GyXuROD8gWNgU 1MbghKUmvJTuRa4x6cthKzDCarkVVKWdJD6nNzs4jR/UhbrrXBaPUP7zCyn/cUMnM6UK Y6o8r9gA6rsizSgzZawr8ebmiHezwqbu45gji/Rt3/dRDp+tK6TwgvJR6mpiSdVBdhCr QltA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=oZptq99McEmSTWKDkacQuJxWYVLFif45IaPqyzpBkjk=; b=Fj3+RSepEFiTJSm2hZdUyPk0H7v+RmTYH+c8pyx1+loO2Ng/3ybNu8P1Bd+GzvyWNO 0ItGn0RltTQXqSfGA0SF/5N7S5gjYRggMDTZORDe946+UvW5OdnXNd1ufRTftXWEcMeY 4aSD7Hhia97R/2sTI9QGpUjHzpvouTKyvuJ3r7hONCDh6yOgef4B8JpP+e1dsdldourF jkQqhicBwAJmBjAUwhEdwHex60lRRY2A280ztkSRncSo7OXVEyLBKETG5Utr+w49L5s5 pEWIzxcFo4NkO23H6TLR7B3zayGzUUlBojCFs0h55X4fQSebAi3DV8mR6x1FHmC14t+5 ZdHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZYxOJU1r; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id x14si8853481pll.302.2022.02.09.05.46.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 05:46:13 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZYxOJU1r; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CD183E09E769; Wed, 9 Feb 2022 02:27:05 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233706AbiBIG2h (ORCPT + 99 others); Wed, 9 Feb 2022 01:28:37 -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-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 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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