regulator: ab8500: Split up probe() into manageable pieces
authorLee Jones <lee.jones@linaro.org>
Thu, 17 May 2012 13:45:14 +0000 (14:45 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 18 May 2012 07:36:45 +0000 (08:36 +0100)
commita7ac1d9e4eac7e4ca5f7c76ea98421a0f6af671b
tree72ef75d9ca752a436d2492b18fbdd69ff9b7d894
parent68c7ff8f9b40bcc35abb22160bc30221477e0a89
regulator: ab8500: Split up probe() into manageable pieces

ab8500's probe() function is becoming quite large, so in the lead
up to Device Tree enablement which will fork the thread of execution
this patch splits it into 3 main areas; basic error checking will
remain in probe(), but regulator register initialisation and regulator
registration have been moved to their own functions which will
be called in sequence by probe() and the DT equivalent.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/ab8500.c