Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1474433pxb; Wed, 2 Feb 2022 05:54:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBkATNHpQ3ainhXUd8qjTKnZm8eoURRHTslMBxSSaNA+vwGNT0j15+76SP9VjWDx92AotQ X-Received: by 2002:a17:903:11c5:: with SMTP id q5mr30846800plh.136.1643810055595; Wed, 02 Feb 2022 05:54:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643810055; cv=none; d=google.com; s=arc-20160816; b=FELSEPPjakbiTXrSgT3KoXkBy9tASeCUzQ4yn2P5YBSF4dZfq4753cE9NMEVaWJ2D6 3rmaHdKz8JgmbXT4suqwAQbUV9xvmKXEpwLm+wj65palnlmAz8LgVAmBQgRmHsyLq8AK fz5VUMrstT56GAeT5ELCw1wYKa201LgGTJgr3gTupeMuTZUq7LB10MfTRYwm8DdSCLPy 4GZ2Fd1uM+Grcubczer49iLk8LMYpaFaLgBPNnQHm0jDZsJqZpXP/LtO+Yuy1vlQ3pDR N348tSD64azVZm3NBhgVlMWwIFv2ayiNs2+KQ6lR175DTNacZjwdrowZrh3EmZdCcT+V Uinw== 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=HSMMjSBHOwcn3IgIyY67HPrPPxDfr6ixh/rCX5+uWFo=; b=ve7NbptdBjUC9aYQTaGpe1yYO2kcOObUxgb9Niz70sLFNNLCQ0+/Bp4c8Ex0ZgS5Fw bHqGSwW7jXALGRFnzeV1a1vBCaRDwVKM+zU6ZVuIzQP5O0unw9BCNsbYhzvoTCN1romF LQ5uyX8I1+lURyqUy2iwoSBVu/2CDU/Vz8wEMngq0jU516iXxCrPw7k/HSrUxUYztgr1 mnIaogyxqxWFt03nK5h4dQ75ocQ9u9uxqp1SisTbpU+4MkRaG+hUmuNADCany4fmc3// agyAhdFDNG6zRrc41ktmeLvG9LmVxDPdamGAKc41fZmRcvijl8zu2YgKcaUpIThE0rsl ZoJQ== 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 y36si23075338pga.623.2022.02.02.05.54.04; Wed, 02 Feb 2022 05:54:15 -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 S242275AbiBATMe (ORCPT + 99 others); Tue, 1 Feb 2022 14:12:34 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:59334 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230158AbiBATMd (ORCPT ); Tue, 1 Feb 2022 14:12:33 -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 413eb53da59d4c8b; Tue, 1 Feb 2022 20:12:32 +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 8288C66B3BC; Tue, 1 Feb 2022 20:12:31 +0100 (CET) From: "Rafael J. Wysocki" To: Andreas Noever , Michael Jamet , Mika Westerberg , Yehezkel Bernat Cc: Linux ACPI , LKML , linux-usb@vger.kernel.org Subject: [PATCH] thunderbolt: Replace acpi_bus_get_device() Date: Tue, 01 Feb 2022 20:12:30 +0100 Message-ID: <1883502.PYKUYFuaPT@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: gggruggvucftvghtrhhoucdtuddrgedvvddrgeefgdduvdduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpefhgedtffejheekgeeljeevvedtuefgffeiieejuddutdekgfejvdehueejjeetvdenucfkphepvddufedrudefgedrudeivddrieegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddufedrudefgedrudeivddrieegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeejpdhrtghpthhtoheprghnughrvggrshdrnhhovghvvghrsehgmhgrihhlrdgtohhmpdhrtghpthhtohepmhhitghhrggvlhdrjhgrmhgvthesihhnthgvlhdrtghomhdprhgtphhtthhopehmihhkrgdrfigvshhtvghrsggvrhhgsehlihhnuhigrdhinhhtvghlrdgtohhmpdhrtghpthhtohepjggvhhgviihkvghlufhhueesghhmrghilhdrtghomhdprhgtphhtthhopehl ihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhushgssehvghgvrhdrkhgvrhhnvghlrdhorhhg X-DCC--Metrics: v370.home.net.pl 1024; Body=7 Fuz1=7 Fuz2=7 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/thunderbolt/acpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux-pm/drivers/thunderbolt/acpi.c =================================================================== --- linux-pm.orig/drivers/thunderbolt/acpi.c +++ linux-pm/drivers/thunderbolt/acpi.c @@ -14,15 +14,15 @@ static acpi_status tb_acpi_add_link(acpi_handle handle, u32 level, void *data, void **return_value) { + struct acpi_device *adev = acpi_fetch_acpi_dev(handle); struct fwnode_reference_args args; struct fwnode_handle *fwnode; struct tb_nhi *nhi = data; - struct acpi_device *adev; struct pci_dev *pdev; struct device *dev; int ret; - if (acpi_bus_get_device(handle, &adev)) + if (!adev) return AE_OK; fwnode = acpi_fwnode_handle(adev);