mfd: pcf50633: Reconnect -ENOMEM error path
authorLee Jones <lee.jones@linaro.org>
Tue, 1 Jul 2014 11:57:36 +0000 (12:57 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 9 Jul 2014 13:58:14 +0000 (14:58 +0100)
If platform_device_alloc() or platform_device_add_data() fail during
pcf50633_probe(), the current code ignores the return error code and
continues to attempt to allocate new platform devices for each of the
supported regulators.  Instead, if any failures occur we should fail
out gracefully by cleaning up after ourselves and return the error.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/pcf50633-core.c

Simple merge