regulator: arizona-micsupp: Drop OF node reference on error path
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Fri, 20 Feb 2015 16:08:44 +0000 (16:08 +0000)
committerMark Brown <broonie@kernel.org>
Sat, 21 Feb 2015 14:30:30 +0000 (23:30 +0900)
commita7b976ae4bff9ff4f9c9943d3232dec7e87c68b9
tree823648d45b3f9a161f6135bd63a984321e233668
parentbfa76d49576599a4b9f9b7a71f23d73d6dcff735
regulator: arizona-micsupp: 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-micsupp.c