• Lee Jones's avatar
    mfd: pcf50633: Reconnect -ENOMEM error path · c981015e
    Lee Jones authored
    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: default avatarLee Jones <lee.jones@linaro.org>
    c981015e
pcf50633-core.c 7.8 KB