summaryrefslogtreecommitdiffstats
path: root/drivers/net/fjes/fjes_main.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-02-02 15:19:20 +0100
committerJakub Kicinski <kuba@kernel.org>2022-02-02 17:05:06 +0100
commit52dae93f3bad842c6d585700460a0dea4d70e096 (patch)
treee25388dd86414a54094492650fbc002ebf29ba97 /drivers/net/fjes/fjes_main.c
parenttcp: Use BPF timeout setting for SYN ACK RTO (diff)
downloadlinux-52dae93f3bad842c6d585700460a0dea4d70e096.tar.xz
linux-52dae93f3bad842c6d585700460a0dea4d70e096.zip
drivers: net: Replace acpi_bus_get_device()
Replace acpi_bus_get_device() that is going to be dropped with acpi_fetch_acpi_dev(). No intentional functional impact. Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Link: https://lore.kernel.org/r/11918902.O9o76ZdvQC@kreacher Link: https://lore.kernel.org/r/11920660.O9o76ZdvQC@kreacher Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/fjes/fjes_main.c')
-rw-r--r--drivers/net/fjes/fjes_main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/fjes/fjes_main.c b/drivers/net/fjes/fjes_main.c
index ebd287039a54..5805e4a56385 100644
--- a/drivers/net/fjes/fjes_main.c
+++ b/drivers/net/fjes/fjes_main.c
@@ -1514,10 +1514,9 @@ acpi_find_extended_socket_device(acpi_handle obj_handle, u32 level,
{
struct acpi_device *device;
bool *found = context;
- int result;
- result = acpi_bus_get_device(obj_handle, &device);
- if (result)
+ device = acpi_fetch_acpi_dev(obj_handle);
+ if (!device)
return AE_OK;
if (strcmp(acpi_device_hid(device), ACPI_MOTHERBOARD_RESOURCE_HID))