Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: as3722: Add missing of_node_put

Add of_node_put to decrement the ref count.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>

authored by

Sachin Kamat and committed by
Mark Brown
ba40e557 38dbfb59

+1
+1
drivers/regulator/as3722-regulator.c
··· 719 719 720 720 ret = of_regulator_match(&pdev->dev, np, as3722_regulator_matches, 721 721 ARRAY_SIZE(as3722_regulator_matches)); 722 + of_node_put(np); 722 723 if (ret < 0) { 723 724 dev_err(&pdev->dev, "Parsing of regulator node failed: %d\n", 724 725 ret);