]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: arizona-ldo1: Drop OF node reference on error path
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Fri, 20 Feb 2015 16:08:43 +0000 (16:08 +0000)
committerMark Brown <broonie@kernel.org>
Sat, 21 Feb 2015 14:30:02 +0000 (23:30 +0900)
commitd40fc798ff5b6334cf3c459265c05630e3aa20f0
tree861e10abaf8405d57eb0dd4cf1855da872faf398
parente716639644c99cea0dd635682be67de26d48dbf6
regulator: arizona-ldo1: Drop OF node reference on error path

We were not calling of_node_put if the regulator failed to register this
patch fixes this.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/arizona-ldo1.c