Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5540972pxb; Wed, 26 Jan 2022 14:33:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkjlE9vqjY5wjH2kc06CR3ZoqUu+BaY4EW3kXSCfTbIocXtU3KWSmhEEMjSHUNgU1VdkLx X-Received: by 2002:a17:902:ce84:: with SMTP id f4mr541736plg.134.1643236416722; Wed, 26 Jan 2022 14:33:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643236416; cv=none; d=google.com; s=arc-20160816; b=iyQExrNdy8VF8jtX29uyVH/QrJCi8UNegwButlRIDaEFoGiQfvORJQDz+l+7ouh8gm YL2m1S6BnYdG6tTmczTVyfQNZDdyGNCFLlb/N5RU/Id9Httt1RW/rNCNDH54ymTewvJm Yxju8qIRc3uPJt6RLzWDAqLd7oQY3kGhvlqTgk5U7MvZBgB45WktpbUnvAfmMsLUOpQN C5XGcDAnBEFWSXqrjyi8dKL5riafhwhVYg3jdkdQX47lTZwV/PiZX+hniAKCacK81SXb j2EA1W97xGYLwzjwyOn3yaYb+KPlpDmTfovyz86WGqfNoPOdxXC5nZxHClbqZ0MBakEA b34A== 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=DruJ44qoCP3ZTkUr0rEcf9VaFawQOOAcBVbm/sB0cQY=; b=wB+y5uDLahtm36M1bfAXRcQN5kJIMe0PiP3rz7zqWwyQQJVgtN6kG6oBX2ztq1f6je Rknyk/MSmtGIAmPaAJcGaxLwkf9mWaPEayJFqPYPQZVx6A/6duYePxf7mVxF/AfjPVYd gcOIbSXR2XJjoZ7aJD2FBguQBCoDzSyWxRj8Cf3Bq4ihK6iatBlukFlvHDNfq27oVRgT ecftdu7oGH+r9Ava0y51YDm/TfE8r0XCA86P2PsI6z/ojZNS8SRAywNX4WE6IFDa/5Ml GtOyVtaGuNPLDGqRGlnHWHKj2o+mOO5ZYTTw7ft5Jo5gN76KV65jJkUwd8jze1Z5kJ8Y 1I7w== 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 o9si425256plc.601.2022.01.26.14.33.24; Wed, 26 Jan 2022 14:33:36 -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 S232795AbiAZTuo (ORCPT + 99 others); Wed, 26 Jan 2022 14:50:44 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:43596 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231611AbiAZTum (ORCPT ); Wed, 26 Jan 2022 14:50:42 -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 2c39f910849b86ef; Wed, 26 Jan 2022 20:50:41 +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 2CB2B66B306; Wed, 26 Jan 2022 20:50:40 +0100 (CET) From: "Rafael J. Wysocki" To: Vinod Koul Cc: Bard Liao , Pierre-Louis Bossart , alsa-devel@alsa-project.org, LKML , Linux ACPI Subject: [PATCH] soundwire: Replace acpi_bus_get_device() Date: Wed, 26 Jan 2022 20:50:39 +0100 Message-ID: <3173256.44csPzL39Z@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: gggruggvucftvghtrhhoucdtuddrgedvvddrfedugdduvdelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpefhgedtffejheekgeeljeevvedtuefgffeiieejuddutdekgfejvdehueejjeetvdenucfkphepvddufedrudefgedrudeivddrieefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddufedrudefgedrudeivddrieefpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeeipdhrtghpthhtohepvhhkohhulheskhgvrhhnvghlrdhorhhgpdhrtghpthhtohephihunhhgqdgthhhurghnrdhlihgroheslhhinhhugidrihhnthgvlhdrtghomhdprhgtphhtthhopehpihgvrhhrvgdqlhhouhhishdrsghoshhsrghrtheslhhinhhugidrihhnthgvlhdrtghomhdprhgtphhtthhopegrlhhsrgdquggvvhgvlhesrghlshgrqdhprhhojhgvtghtrdho rhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhg X-DCC--Metrics: v370.home.net.pl 1024; Body=6 Fuz1=6 Fuz2=6 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/soundwire/intel_init.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) Index: linux-pm/drivers/soundwire/intel_init.c =================================================================== --- linux-pm.orig/drivers/soundwire/intel_init.c +++ linux-pm/drivers/soundwire/intel_init.c @@ -180,7 +180,8 @@ static struct sdw_intel_ctx if (!res) return NULL; - if (acpi_bus_get_device(res->handle, &adev)) + adev = acpi_fetch_acpi_dev(res->handle); + if (!adev) return NULL; if (!res->count) @@ -294,13 +295,13 @@ err: static int sdw_intel_startup_controller(struct sdw_intel_ctx *ctx) { - struct acpi_device *adev; + struct acpi_device *adev = acpi_fetch_acpi_dev(ctx->handle); struct sdw_intel_link_dev *ldev; u32 caps; u32 link_mask; int i; - if (acpi_bus_get_device(ctx->handle, &adev)) + if (!adev) return -EINVAL; /* Check SNDWLCAP.LCOUNT */