Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1456930pxb; Wed, 2 Feb 2022 05:30:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRdJ1VQaX4j5jZXUScgmUjRVCAQ+D8WG3i021hIDqP1AKE4OzJSVJCta0zj0ZvvsqCth/9 X-Received: by 2002:a17:902:db0d:: with SMTP id m13mr29696555plx.159.1643808642668; Wed, 02 Feb 2022 05:30:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643808642; cv=none; d=google.com; s=arc-20160816; b=zLYq70fPif78wl0eppBHC/rMtbuQ/+o2c9Qa298wPBOKqpOJAXSrze0o8Dmh3GNBAJ 1ExQLhD3eEXSEb+ioOeJ5ef5COtuHX1HNCEzgqbbnaHUPvDnIlMi+33zn+Y46vCh5+zF l/A6ZX0U3fz8/+eFZkrwrtrnvArrNY8+cZ534m9MfXw0aMJL7XNkMA2ySBRXseyMRXAf sHUpabFKI+Z2M+YtOnB32FH8M82KU107yUk+xgmcLpSujR0b6FulVbK0ZEL5uONzxvZL ZkdMwPcVEGyPiNBghU0MeAbt18SYJOrSbEiRadscJICMlpGFJDasyCL+wOkxIfPv0wBE ouvA== 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=qy1eAQyZ8xHJpOMS/cLb3TN1JHF3PEgmG68TaCpRAYM=; b=iFl8b2c1oUhCYJY1k3xDHW5Wd7Y2WEbIO+kX92KvH8PlHg5MgtkzFoLcdgIARpIavf +RM9C9pNDI2BUauuCoFKgiALetb3MQl7BiEcvUzyPwR2i8VJZwXGV3bzlf+T5hmvyGAe hxVnQCs5AxmRuqXrfFP/i45k0gaMIHojwzKzR7+esLwI1M0cHzad689heWOxZhsy3+gI 89iyo/JbSSDvYFBNwJo6VTYwlV6lRY2Gd+fQY6thjmfYDdU3h2ggmIRwsGL7Dcuure0g gL8ZqpBtIyOsZDKFvIWg0Y+vOsvxogSyJGjKPfA90U/IFZvevvqlwurzHQVMzc6oh2bw YgVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c24si1383528pls.475.2022.02.02.05.30.30; Wed, 02 Feb 2022 05:30:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237223AbiBAUGF (ORCPT + 99 others); Tue, 1 Feb 2022 15:06:05 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:54912 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231634AbiBAUGC (ORCPT ); Tue, 1 Feb 2022 15:06: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 0f0dd5d4a55e3bee; Tue, 1 Feb 2022 21:06:01 +0100 Received: from kreacher.localnet (unknown [213.134.162.64]) (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 BBC8F66B390; Tue, 1 Feb 2022 21:06:00 +0100 (CET) From: "Rafael J. Wysocki" To: Mark Brown Cc: linux-spi@vger.kernel.org, LKML , Linux ACPI Subject: [PATCH] spi: Replace acpi_bus_get_device() Date: Tue, 01 Feb 2022 21:05:59 +0100 Message-ID: <2231987.ElGaqSPkdT@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 213.134.162.64 X-CLIENT-HOSTNAME: 213.134.162.64 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrgeefgddufeefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpefhgedtffejheekgeeljeevvedtuefgffeiieejuddutdekgfejvdehueejjeetvdenucfkphepvddufedrudefgedrudeivddrieegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddufedrudefgedrudeivddrieegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeegpdhrtghpthhtohepsghrohhonhhivgeskhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqshhpihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrgh 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/spi/spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux-pm/drivers/spi/spi.c =================================================================== --- linux-pm.orig/drivers/spi/spi.c +++ linux-pm/drivers/spi/spi.c @@ -2480,10 +2480,10 @@ static acpi_status acpi_register_spi_dev static acpi_status acpi_spi_add_device(acpi_handle handle, u32 level, void *data, void **return_value) { + struct acpi_device *adev = acpi_fetch_acpi_dev(handle); struct spi_controller *ctlr = data; - struct acpi_device *adev; - if (acpi_bus_get_device(handle, &adev)) + if (!adev) return AE_OK; return acpi_register_spi_device(ctlr, adev);