Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1956432pxb; Wed, 2 Feb 2022 17:02:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPmES9RiMw4qJTvTLduJ/1Yq/sN8xCgtTWJaNrr42KjzcPAnRxOSMedLfeCvMxKkuTDNMx X-Received: by 2002:a50:931d:: with SMTP id m29mr32555629eda.339.1643850166269; Wed, 02 Feb 2022 17:02:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643850166; cv=none; d=google.com; s=arc-20160816; b=tbDggXNcA6u3CXv4PJ3Otja3BE822XfhEbvxWql8H1f0aIwE3F74GOGgK+1ghwNvNW /yeqnh/l7szhUYJDK6A/LeLK0gk/U5zasS3yUn1KDjJXh5+BbefFmqndNrQ0q2+ez+UZ iwXIwbjHKAK2z72rFc6DeKb2S4vCS2meMqxBdcS9JhLggNrf4EE03GexBi11E1i74rLg VpamPzu65Ek8a0tALlJZaGSqWEjLA937AwkiPgcuDIUeyDp3QIQJcqjKvzbFmmwjna6W 9DqpCGFcXc9aYwlcKmpIHQCGK17BYhUHtkbL57GYVMG3E2lEI1QEqKKVWcF/716iy40P Qb1A== 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=WnshCf9BrP+iDiZOW60zDBqYZr7x2jMT+MAQJIOIBeQ=; b=rPhr7qFUsHo8LGVwrohWMShhEevjDW8kseilvq7qFK2PSQAUapNAdpDpkmFRFg5eOk 0dDaA9z2LCCTLE9BBm5q9XYFRf7MD5i8w4xK56xGaf87++EFeeujdpsuQ3rMNmjDcf7v ScFd1hh9POtYvaERL2rPvACUb3jW2pfsOGOUejN2GSquT9vIVODoolOheXL36KFrdwSi 7a+ehID3yyxY7sCNc2D2TjT2W+nrIWsBZZo43skIQMQ7SSBd+crHuTImBiF4t4uxv7FG 8bI5KW7lCOL8Qakr5I8qpRUWPSgFDRYLEW1nHU5YvVBIPnBWtJUJZJeLeaHNjNNqmYzm 0UUg== 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 r17si4263276edv.648.2022.02.02.17.02.21; Wed, 02 Feb 2022 17:02:46 -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 S234855AbiBAR6N (ORCPT + 99 others); Tue, 1 Feb 2022 12:58:13 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:58358 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234820AbiBAR6L (ORCPT ); Tue, 1 Feb 2022 12:58:11 -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 4ac486d4d9c5cd3e; Tue, 1 Feb 2022 18:58:10 +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 B0CF566B390; Tue, 1 Feb 2022 18:58:09 +0100 (CET) From: "Rafael J. Wysocki" To: Alexander Shishkin Cc: Mathieu Poirier , Suzuki K Poulose , Mike Leach , Leo Yan , LKML , Linux ACPI Subject: [PATCH] hwtracing: coresight: Replace acpi_bus_get_device() Date: Tue, 01 Feb 2022 18:58:09 +0100 Message-ID: <5790600.lOV4Wx5bFT@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: gggruggvucftvghtrhhoucdtuddrgedvvddrgeefgddutdeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpefhgedtffejheekgeeljeevvedtuefgffeiieejuddutdekgfejvdehueejjeetvdenucfkphepvddufedrudefgedrudeivddrieegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddufedrudefgedrudeivddrieegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeejpdhrtghpthhtoheprghlvgigrghnuggvrhdrshhhihhshhhkihhnsehlihhnuhigrdhinhhtvghlrdgtohhmpdhrtghpthhtohepmhgrthhhihgvuhdrphhoihhrihgvrheslhhinhgrrhhordhorhhgpdhrtghpthhtohepshhuiihukhhirdhpohhulhhoshgvsegrrhhmrdgtohhmpdhrtghpthhtohepmhhikhgvrdhlvggrtghhsehlihhnrghrohdrohhrghdprhgtphht thhopehlvghordihrghnsehlihhnrghrohdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrgh 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/hwtracing/coresight/coresight-platform.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) Index: linux-pm/drivers/hwtracing/coresight/coresight-platform.c =================================================================== --- linux-pm.orig/drivers/hwtracing/coresight/coresight-platform.c +++ linux-pm/drivers/hwtracing/coresight/coresight-platform.c @@ -626,7 +626,7 @@ static int acpi_coresight_parse_link(str const union acpi_object *link, struct coresight_connection *conn) { - int rc, dir; + int dir; const union acpi_object *fields; struct acpi_device *r_adev; struct device *rdev; @@ -643,9 +643,9 @@ static int acpi_coresight_parse_link(str fields[3].type != ACPI_TYPE_INTEGER) return -EINVAL; - rc = acpi_bus_get_device(fields[2].reference.handle, &r_adev); - if (rc) - return rc; + r_adev = acpi_fetch_acpi_dev(fields[2].reference.handle); + if (!r_adev) + return -ENODEV; dir = fields[3].integer.value; if (dir == ACPI_CORESIGHT_LINK_MASTER) {