regulator: axp20x: Fix reference cout leak
authorPan Bian <bianpan2016@163.com>
Wed, 20 Jan 2021 12:33:13 +0000 (04:33 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 10:37:58 +0000 (11:37 +0100)
commita6b732fb6a8344c97664f3ad72e6cbf8bea88e01
treec7988de8cb366e4e4139476bfed0190d69bee880
parent863691f865b7f20121a2071a9d70f37514899f91
regulator: axp20x: Fix reference cout leak

[ Upstream commit e78bf6be7edaacb39778f3a89416caddfc6c6d70 ]

Decrements the reference count of device node and its child node.

Fixes: dfe7a1b058bb ("regulator: AXP20x: Add support for regulators subsystem")
Signed-off-by: Pan Bian <bianpan2016@163.com>
Link: https://lore.kernel.org/r/20210120123313.107640-1-bianpan2016@163.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/regulator/axp20x-regulator.c