mfd: ab8500-sysctrl: Error check clean up
authorMarcus Danielsson <marcus.danielsson@stericsson.com>
Mon, 18 Jun 2012 13:00:40 +0000 (15:00 +0200)
committerLee Jones <lee.jones@linaro.org>
Thu, 7 Mar 2013 04:28:02 +0000 (12:28 +0800)
commit2377e52f7ca8ebe6ba9ad0e6173915538ee4808b
tree2cb4de1e8a922d96f109e2d7443d6daa806ae693
parent2cf64e264828aa0be841751d41fcd7f13a98d778
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: Marcus Danielsson <marcus.danielsson@stericsson.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Mattias WALLIN <mattias.wallin@stericsson.com>
Tested-by: Per FORLIN <per.forlin@stericsson.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/ab8500-sysctrl.c