Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5542890pxb; Wed, 26 Jan 2022 14:36:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzotLX71CT5/Pa+MSL3tdQz92bZTZD7IAUZPQT4gysvw0AboivhMj6xbTKvLN/V5ncTVQEt X-Received: by 2002:a17:906:ae8a:: with SMTP id md10mr735457ejb.726.1643236595182; Wed, 26 Jan 2022 14:36:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643236595; cv=none; d=google.com; s=arc-20160816; b=M6JLnVa7AU8EXoRbNamojjBytYv38LSJIcLIEJ6wQZwwbKfF877X55RSihY9Enp/Zy JvwMJuvRl9yQT+YGObjb6pu3oCPVEaDUtsTGKvkpflsoO2Ufo2QPrWw44oyUvHb+LWVE R0DIA3NBeRUA5cSZFalR9oaexf4li0yuu19yUiqHASqmrWMsDJtNyk0N5X5qK9u4hhVt p6WrW8tI0jG7tWUV3jR0+r8zFPSDyaIz3wA0XOvu85H98Y9VOrmoKMd277agvfNcQPX6 e/PEIXqPZsXJoG04f/ZsRGpJyG7zV4PaWtjoNS8kUGu/0zj0SnJ2FEkdI/sdqu54T5E3 alFw== 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=NzdrUBAfer7++RHG/fabL+VzVrJS3OktApvUXNSAHGk=; b=Bs+hKAKu0sVPI9dFEkSjD+lllxO8Ey68/pOPOoJRjN9HIK894YuYX3thXEqOfxI2rM TOHbdS6LDwq7Cc+HPMQ191f5ZcySbiHjybR6VUZDsgbHzyvNJ6U5P9fXj/Yt8mioPjQe 7asMA4TXcWIhft8pCE/ZmTTl1j2eWDvUmeN6duZDgDj5Oi4MugVv3CVGc0zdcuarhQM4 IATNdB2v1MM7NGtwb8rX8+tR1CxM1U2NYFWNsjZ2f7r7OONA7Y0zqRvjmFPhN3ZRaXNy wkcxosDGty2O+cxn19hpke8Rsfe3YyfuOPTkQNGFLeFszo74Bmi1rLKXapl01gM6IVd7 BOYQ== 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 sg39si284335ejc.975.2022.01.26.14.36.10; Wed, 26 Jan 2022 14:36:35 -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 S244586AbiAZTv4 (ORCPT + 99 others); Wed, 26 Jan 2022 14:51:56 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:62062 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233524AbiAZTva (ORCPT ); Wed, 26 Jan 2022 14:51:30 -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 2ad60d40baee1e68; Wed, 26 Jan 2022 20:51:29 +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 34E8566B35A; Wed, 26 Jan 2022 20:51:28 +0100 (CET) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML Subject: [PATCH] PNP: Replace acpi_bus_get_device() Date: Wed, 26 Jan 2022 20:51:27 +0100 Message-ID: <10038945.nUPlyArG6x@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: gggruggvucftvghtrhhoucdtuddrgedvvddrfedugdduvdelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpefhgedtffejheekgeeljeevvedtuefgffeiieejuddutdekgfejvdehueejjeetvdenucfkphepvddufedrudefgedrudeivddrieefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddufedrudefgedrudeivddrieefpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopedvpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg X-DCC--Metrics: v370.home.net.pl 1024; Body=2 Fuz1=2 Fuz2=2 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/pnp/pnpacpi/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux-pm/drivers/pnp/pnpacpi/core.c =================================================================== --- linux-pm.orig/drivers/pnp/pnpacpi/core.c +++ linux-pm/drivers/pnp/pnpacpi/core.c @@ -287,9 +287,9 @@ static acpi_status __init pnpacpi_add_de u32 lvl, void *context, void **rv) { - struct acpi_device *device; + struct acpi_device *device = acpi_fetch_acpi_dev(handle); - if (acpi_bus_get_device(handle, &device)) + if (!device) return AE_CTRL_DEPTH; if (acpi_is_pnp_device(device)) pnpacpi_add_device(device);