[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <2231987.ElGaqSPkdT@kreacher>
Date: Tue, 01 Feb 2022 21:05:59 +0100
From: "Rafael J. Wysocki" <rjw@...ysocki.net>
To: Mark Brown <broonie@...nel.org>
Cc: linux-spi@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
Linux ACPI <linux-acpi@...r.kernel.org>
Subject: [PATCH] spi: Replace acpi_bus_get_device()
From: Rafael J. Wysocki <rafael.j.wysocki@...el.com>
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 <rafael.j.wysocki@...el.com>
---
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);
Powered by blists - more mailing lists