mfd: ab8500-sysctrl: Error check clean up
authorMarcus Danielsson <[email protected]>
Mon, 18 Jun 2012 13:00:40 +0000 (15:00 +0200)
committerLee Jones <[email protected]>
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 <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Reviewed-by: Mattias WALLIN <[email protected]>
Tested-by: Per FORLIN <[email protected]>
Acked-by: Samuel Ortiz <[email protected]>
drivers/mfd/ab8500-sysctrl.c