Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5542207pxb; Wed, 26 Jan 2022 14:35:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJyJbALvTACUQta8Wuqvmrfhla1DXE474FP4/ofxkTqERv02as2FKRZmK715ka8v2/UCz/nT X-Received: by 2002:a05:6402:270f:: with SMTP id y15mr984805edd.409.1643236528641; Wed, 26 Jan 2022 14:35:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643236528; cv=none; d=google.com; s=arc-20160816; b=cAMVJlsCggWQwKwjQGRs7kxqdG5ZfGm68Fq3E8uUoMxfyl/7qN4CczLmtU+kjNVFMp kDwm7nVSL4V0MdLMYicEFHnLbqhcdcMn2eUimFpstPz5KTbosEx7h5TWWIzGfCL27txS B/OU8honlrzKUBy888G4mhckt2ed3jv5aj0dF5xlTAQNL68t7xUPOrF81lOmkKFGhVgk jmWWcdQGXpIW9uhNoji32bktVv1il3kBN4e4RQz4eX1Z21aS9/PYXPJAhy7DCm1vqJRL CHqmgi5pAHUTcwRBgiChUIOFYU3S1YTFlyzOMGsvlKOvnJihgZ9SEHRFHRMrXfqn5EG6 Z/aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=BbF+y8v1J52ncwK2FDBEj1+suugyXkiV4eZfuSZodds=; b=Za7FuHvq+TmuA2EZm5EZe68gLlbyvKo2Ryi/M5Z4jSiL6mKwK/YlkpwR+ZW1mxXZFa 24JbBVGodFtU6GksHZV0kLIjpBoZ0LXNAON/vxcStEPV0eFF7mvSRxh4TTGBVQvpAbjO 8qX02uFJpOzt04Nr7kUU2JX9c29K/+svw3BT60yd5xoUOrU6cnesTc3Wd/okVQ1gKCfR 8nOMje5vuJSxpIc8gXsWh416re7LOAmIKeGV/vGyAwrY8VK5p8/iuVuCiVnYu1TA8VlJ T2DUwL5C+KQ/AmlXsRmINZmtXN+dhGBzlbPVUlOsI76WKhlgruPgX6tFEDbBI2sAT2fQ iy3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hq37si297959ejc.582.2022.01.26.14.35.02; Wed, 26 Jan 2022 14:35:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232317AbiAZToD (ORCPT + 99 others); Wed, 26 Jan 2022 14:44:03 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:60818 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244494AbiAZToC (ORCPT ); Wed, 26 Jan 2022 14:44:02 -0500 Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 4.0.0) id 6db520bf7b967e80; Wed, 26 Jan 2022 20:44:00 +0100 Received: from kreacher.localnet (unknown [213.134.162.63]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id EC85B66B311; Wed, 26 Jan 2022 20:43:59 +0100 (CET) From: "Rafael J. Wysocki" To: Linux PM Cc: LKML , Linux ACPI , Viresh Kumar Subject: [PATCH] cpufreq: longhaul: Replace acpi_bus_get_device() Date: Wed, 26 Jan 2022 20:43:59 +0100 Message-ID: <4700827.GXAFRqVoOG@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 213.134.162.63 X-CLIENT-HOSTNAME: 213.134.162.63 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrfedugdduvdejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpefhgedtffejheekgeeljeevvedtuefgffeiieejuddutdekgfejvdehueejjeetvdenucfkphepvddufedrudefgedrudeivddrieefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddufedrudefgedrudeivddrieefpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeegpdhrtghpthhtoheplhhinhhugidqphhmsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepvhhirhgvshhhrdhkuhhmrghrsehlihhnrghrohdrohhrgh X-DCC--Metrics: v370.home.net.pl 1024; Body=4 Fuz1=4 Fuz2=4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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);