Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5541872pxb; Wed, 26 Jan 2022 14:35:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJybqJpbPq+4iimlBnrfv7nStag1nJ+f0uqFdNtJ/jJz/8YxHtXXCUy4BZxCfhNgAluLETcC X-Received: by 2002:a05:6402:348b:: with SMTP id v11mr1109512edc.58.1643236502270; Wed, 26 Jan 2022 14:35:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643236502; cv=none; d=google.com; s=arc-20160816; b=HM1s6pZ5p/8jbMcFqsu7xAfenLfEBFZzc3RenZt5uyxIiwHXR+H/EbIcMPkBxLVDHY 5KlQtQopA5hQ+WgXdkDNRY94AObT5RdepWEFVuCmG5Lzv28aqENtWjGp7KwLJGsqzpKC LKrsB4eN1uRGEOjvJpU4cJVM4ZTb+OEned7lt+NQckatDZjjwOq/PmCspiXQ2EjDFN9H 3FLT6vPmYwW7UhPs4FUJ5RBZMJxLjF8vXja04OiiOK6+jw6wnTa/y2IgOa/WtG/RwO39 JT4U5AcNWOPtY565dkpvSWfQPrP0J3rZA0L1kADREDjGRHlI4Fz0BZmZ+zKrFJUAjX75 v1Vw== 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=3c2/2clR40ALip3hY2eqWic7R2TF3V+e7aXRwsbRWoo=; b=owHle/SiHXgzckU5Ui37yigd5hsOZ53/yQSZWhm4qmKtk+XKZ/wYV0WqG846wIMaSA srWnSg6qGpaGDN7opp39wRomACH+zi/z7jzeo0HOaetKxMgQ5ZQhKlI/slI868rRHsLK woQv7Mjp3v2DBso1+2U8fYKE3/stskGUIhKhXOGlmBEi/RLgT54LuETYmbONdMJDNr5N RSf693adqeWNGUsG+VMNexYFv/B2s3TwDGq4K4RN2+hhzW/Zk2TBYqPrJ4+mCS0kWGrv Yuhb2rM7lG3YfEreOfHNblgxJ4JM6lIRMj+XygNajA+veASjukBTUjM/ry8Df0pjQjAf GhNg== 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 s1si315540ejn.15.2022.01.26.14.34.36; Wed, 26 Jan 2022 14:35:02 -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 S244617AbiAZTzn (ORCPT + 99 others); Wed, 26 Jan 2022 14:55:43 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:60956 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244579AbiAZTzm (ORCPT ); Wed, 26 Jan 2022 14:55: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 891895715511f05e; Wed, 26 Jan 2022 20:55: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 9948E66B35A; Wed, 26 Jan 2022 20:55:40 +0100 (CET) From: "Rafael J. Wysocki" To: Rob Herring Cc: Greg Kroah-Hartman , LKML , Linux ACPI , Jiri Slaby , linux-serial@vger.kernel.org Subject: [PATCH] tty: Replace acpi_bus_get_device() Date: Wed, 26 Jan 2022 20:55:39 +0100 Message-ID: <7355105.EvYhyI6sBW@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: gggruggvucftvghtrhhoucdtuddrgedvvddrfedugddufedtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpefhgedtffejheekgeeljeevvedtuefgffeiieejuddutdekgfejvdehueejjeetvdenucfkphepvddufedrudefgedrudeivddrieefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddufedrudefgedrudeivddrieefpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeeipdhrtghpthhtoheprhhosghhsehkvghrnhgvlhdrohhrghdprhgtphhtthhopehgrhgvghhkhheslhhinhhugihfohhunhgurghtihhonhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjihhrihhs lhgrsgihsehkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhsvghrihgrlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh 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/tty/serdev/core.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) Index: linux-pm/drivers/tty/serdev/core.c =================================================================== --- linux-pm.orig/drivers/tty/serdev/core.c +++ linux-pm/drivers/tty/serdev/core.c @@ -704,13 +704,10 @@ static const struct acpi_device_id serde static acpi_status acpi_serdev_add_device(acpi_handle handle, u32 level, void *data, void **return_value) { + struct acpi_device *adev = acpi_fetch_acpi_dev(handle); struct serdev_controller *ctrl = data; - struct acpi_device *adev; - if (acpi_bus_get_device(handle, &adev)) - return AE_OK; - - if (acpi_device_enumerated(adev)) + if (!adev || acpi_device_enumerated(adev)) return AE_OK; /* Skip if black listed */