regulator: core: Release regulator-regulator supplies on error
commit4666b31d6dadd715732179f47aaf43f9143306d8
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 13 May 2012 17:35:56 +0000 (13 18:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Jun 2012 07:15:41 +0000 (1 15:15 +0800)
treec2ffe4babd1e0c3f531a79f2430527df8eea508f
parent44f289c7e60fb04330ddf1c650a0ec0311ce29f6
regulator: core: Release regulator-regulator supplies on error

commit e81dba85c6388dfabcb76cbc2b8bd02836a53ae5 upstream.

If we fail while registering a regulator make sure we release the supply
for the regulator if there is one.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/regulator/core.c