]> www.infradead.org Git - users/hch/misc.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)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 7 Apr 2025 06:53:10 +0000 (08:53 +0200)
commit8323f3a69de6f6e96bf22f32dd8e2920766050c2
tree5092b113ff8b9be65d1aeaecb760c3c5c313b86a
parent0af2f6be1b4281385b618cb86ad946eded089ac8
gpio: tegra186: fix resource handling in ACPI probe path

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>
drivers/gpio/gpio-tegra186.c