mfd: sm501: Fix leaks in probe()
This code should clean up if sm501_init_dev() fails. Fixes: b6d6454f ("[PATCH] mfd: SM501 core driver") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Showing
Please register or sign in to comment