regulator: axp20x: Fix reference cout leak
authorPan Bian <bianpan2016@163.com>
Wed, 20 Jan 2021 12:33:13 +0000 (04:33 -0800)
committerMark Brown <broonie@kernel.org>
Wed, 20 Jan 2021 18:48:20 +0000 (18:48 +0000)
commite78bf6be7edaacb39778f3a89416caddfc6c6d70
treeacc495135c69459a6254cb709db2301b65a7f154
parentf35f6d8c117569f626826394d85a7e87e167bde8
regulator: axp20x: Fix reference cout leak

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>
drivers/regulator/axp20x-regulator.c