hwmon: (emc2305) Fix a resource leak in emc2305_of_parse_pwm_child

[ Upstream commit 2954ce672b ]

When calling of_parse_phandle_with_args(), the caller is responsible
to call of_node_put() to release the reference of device node.
In emc2305_of_parse_pwm_child, it does not release the reference,
causing a resource leak.

Signed-off-by: Felix Gu <gu_0233@qq.com>
Link: https://lore.kernel.org/r/tencent_738BA80BBF28F3440301EEE6F9E470165105@qq.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Felix Gu 2026-01-15 21:51:48 +08:00 • committed by Sasha Levin
commit 3fa44a5e3b