pmdomain: ti: omap_prm: Fix a reference leak on device node

[ Upstream commit 44c28e1c52 ]

When calling of_parse_phandle_with_args(), the caller is responsible
to call of_node_put() to release the reference of device node.
In omap_prm_domain_attach_dev, it does not release the reference.

Fixes: 58cbff023b ("soc: ti: omap-prm: Add basic power domain support")
Signed-off-by: Felix Gu <gu_0233@qq.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Felix Gu 2026-01-16 20:27:47 +08:00 • committed by Greg Kroah-Hartman
commit b339aecde9