]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gpio: tegra186: fix resource handling in ACPI probe path
authorGuixin Liu <kanie@linux.alibaba.com>
Thu, 27 Mar 2025 03:23:49 +0000 (11:23 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Apr 2025 08:15:54 +0000 (10:15 +0200)
commit2d66517135de9ad778e28ddfb2f90a4f56476395
tree2555f8e0bfd6a00bd1c7f58b6c325cb2ae404e55
parente66fb9b4e9add293fc29420519a116bdb6922999
gpio: tegra186: fix resource handling in ACPI probe path

commit 8323f3a69de6f6e96bf22f32dd8e2920766050c2 upstream.

When the Tegra186 GPIO controller is probed through ACPI matching,
the driver emits two error messages during probing:
  "tegra186-gpio NVDA0508:00: invalid resource (null)"
  "tegra186-gpio NVDA0508:00: invalid resource (null)"

Fix this by getting resource first and then do the ioremap.

Fixes: 2606e7c9f5fc ("gpio: tegra186: Add ACPI support")
Cc: stable@vger.kernel.org
Signed-off-by: Guixin Liu <kanie@linux.alibaba.com>
Link: https://lore.kernel.org/r/20250327032349.78809-1-kanie@linux.alibaba.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpio/gpio-tegra186.c