]> 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:18:22 +0000 (10:18 +0200)
commit91d20b35179fa86ffecda7d4a4745d6801a0fb13
tree0d12ff2b4b3660478b9caffe7cc28dc058408430
parent2e02a8d670419f7efa2f4844e9d27d447da2c5ab
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