mfd: ab8500-sysctrl: Error check clean up
Add error checks to see if sysctrl was probed as it should. If the sysctrl_dev is not set the return value is -EINVAL. Signed-off-by: NMarcus Danielsson <marcus.danielsson@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NMattias WALLIN <mattias.wallin@stericsson.com> Tested-by: NPer FORLIN <per.forlin@stericsson.com> Acked-by: NSamuel Ortiz <sameo@linux.intel.com>
Showing
想要评论请 注册 或 登录