Skip to content
Commit 2377e52f authored by Marcus Danielsson's avatar Marcus Danielsson Committed by Lee Jones
Browse files

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: default avatarMarcus Danielsson <marcus.danielsson@stericsson.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Reviewed-by: default avatarMattias WALLIN <mattias.wallin@stericsson.com>
Tested-by: default avatarPer FORLIN <per.forlin@stericsson.com>
Acked-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 2cf64e26
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment