]> 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>
Fri, 2 May 2025 05:44:27 +0000 (07:44 +0200)
commit786474c9dadf8b91b13cb03854e40021b8b99fa7
tree4c6f8365acb366f4c03160e0922e4c61c3e088f2
parentbc121680d4eb22db290ff5ec32f99efe462e0dc2
gpio: tegra186: fix resource handling in ACPI probe path

[ Upstream commit 8323f3a69de6f6e96bf22f32dd8e2920766050c2 ]

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: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpio-tegra186.c