regulator: core: Release regulator-regulator supplies on error
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 13 May 2012 17:35:56 +0000 (18:35 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 30 May 2012 23:43:26 +0000 (00:43 +0100)
commite669d42fc1dd792d21d2d5d97c124dc0f6d147ea
treec6c27e1d1d82434624e1edf478e8f4d5fea796ae
parentd704f9240928c3ca88ea166c5175a9c66ea48564
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: Ben Hutchings <ben@decadent.org.uk>
drivers/regulator/core.c