wm8350-regulator: fix wm8350_register_regulator error handling
authorAxel Lin <axel.lin@gmail.com>
Mon, 26 Jul 2010 02:41:58 +0000 (10:41 +0800)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Tue, 27 Jul 2010 10:29:27 +0000 (11:29 +0100)
In the case of platform_device_add() fail, we should call
platform_device_put() instead of platform_device_del()

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>

No differences found