]> www.infradead.org Git - users/dwmw2/linux.git/commit
gpio: rcar: Fix missing of_node_put() call
authorFabrizio Castro <fabrizio.castro.jz@renesas.com>
Wed, 5 Mar 2025 16:37:50 +0000 (16:37 +0000)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 6 Mar 2025 14:51:27 +0000 (15:51 +0100)
commit391b41f983bf7ff853de44704d8e14e7cc648a9b
tree6e9cd7c9372d4f3459100883e83a20777ea66247
parentf02c41f87cfe61440c18bf77d1ef0a884b9ee2b5
gpio: rcar: Fix missing of_node_put() call

of_parse_phandle_with_fixed_args() requires its caller to
call into of_node_put() on the node pointer from the output
structure, but such a call is currently missing.

Call into of_node_put() to rectify that.

Fixes: 159f8a0209af ("gpio-rcar: Add DT support")
Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20250305163753.34913-2-fabrizio.castro.jz@renesas.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-rcar.c