mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 02:01:36 +03:00
misc: mods: fix compilation with kernel 5.18
Integrates CL 31407382. Bug 3680536 Change-Id: I5a50dc1c5af1dfcc52aa112269f6802e447206d4 Signed-off-by: Chris Dragan <kdragan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2729243 Reviewed-by: Sachin Nikam <snikam@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Laxman Dewangan
parent
d8714b7da4
commit
4974a781b6
@@ -100,7 +100,12 @@ static int acpi_get_dev_children(struct mods_client *client,
|
||||
|
||||
LOG_ENT();
|
||||
|
||||
#ifdef MODS_HAS_ACPI_FETCH
|
||||
device = acpi_fetch_acpi_dev(dev_handle);
|
||||
status = device ? 0 : -EINVAL;
|
||||
#else
|
||||
status = acpi_bus_get_device(dev_handle, &device);
|
||||
#endif
|
||||
if (ACPI_FAILURE(status) || !device) {
|
||||
cl_error("ACPI: device for fetching device children not found\n");
|
||||
LOG_EXT();
|
||||
|
||||
Reference in New Issue
Block a user