gpiolib: acpi: Move ACPI device NULL check to acpi_can_fallback_to_crs()
authorLaura Nao <laura.nao@collabora.com>
Mon, 13 May 2024 09:56:10 +0000 (11:56 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 21 May 2024 15:33:44 +0000 (18:33 +0300)
commit4bcc9bba48fa1dfd4c0029b9bb201d90b90d58a3
tree579b98ae42ccf6c5541406301a9dda4676ca5ef5
parent8f6a15f095a63a83b096d9b29aaff4f0fbe6f6e6
gpiolib: acpi: Move ACPI device NULL check to acpi_can_fallback_to_crs()

Following the relocation of the function call outside of
__acpi_find_gpio(), move the ACPI device NULL check to
acpi_can_fallback_to_crs().

Signed-off-by: Laura Nao <laura.nao@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reported-by: kernelci.org bot <bot@kernelci.org>
Closes: https://lore.kernel.org/all/20240426154208.81894-1-laura.nao@collabora.com/
Fixes: 49c02f6e901c ("gpiolib: acpi: Move acpi_can_fallback_to_crs() out of __acpi_find_gpio()")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpiolib-acpi.c