diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-01-27 00:40:13 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2022-02-05 00:10:44 +0100 |
commit | 9a607a54a16314ca4f9ec1843e7c01131d851f33 (patch) | |
tree | fe5244d23588c3a29caa925e64b2ed01fe114ae3 /drivers/pci/hotplug/acpiphp_ibm.c | |
parent | Linux 5.17-rc1 (diff) | |
download | linux-9a607a54a16314ca4f9ec1843e7c01131d851f33.tar.xz linux-9a607a54a16314ca4f9ec1843e7c01131d851f33.zip |
PCI/ACPI: Replace acpi_bus_get_device() with acpi_fetch_acpi_dev()
Replace acpi_bus_get_device() that is going to be dropped with
acpi_fetch_acpi_dev().
No intentional functional impact.
Link: https://lore.kernel.org/r/11930209.O9o76ZdvQC@kreacher
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/pci/hotplug/acpiphp_ibm.c')
-rw-r--r-- | drivers/pci/hotplug/acpiphp_ibm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/acpiphp_ibm.c b/drivers/pci/hotplug/acpiphp_ibm.c index df48b3b03ab4..8f3a0a33f362 100644 --- a/drivers/pci/hotplug/acpiphp_ibm.c +++ b/drivers/pci/hotplug/acpiphp_ibm.c @@ -433,8 +433,9 @@ static int __init ibm_acpiphp_init(void) goto init_return; } pr_debug("%s: found IBM aPCI device\n", __func__); - if (acpi_bus_get_device(ibm_acpi_handle, &device)) { - pr_err("%s: acpi_bus_get_device failed\n", __func__); + device = acpi_fetch_acpi_dev(ibm_acpi_handle); + if (!device) { + pr_err("%s: acpi_fetch_acpi_dev failed\n", __func__); retval = -ENODEV; goto init_return; } |