regulator: ab8500-ext: Register as a device in its own right
authorLee Jones <lee.jones@linaro.org>
Fri, 7 Jun 2013 16:11:26 +0000 (17:11 +0100)
committerMark Brown <broonielinaro.org>
Tue, 11 Jun 2013 11:50:00 +0000 (12:50 +0100)
commit5a49b4a527e5b72ae3a4f64f078759f83fbd98b5
treeca98bb9334cfba8994641a372254e9ffbd019378
parent33fb880249b1f2f349461c64d19bdfe2e969c1ba
regulator: ab8500-ext: Register as a device in its own right

Some platforms don't support the AB8500 external regulators, so instead
of having a list of is_<platform>() calls prior to calling
ab8500_ext_regulator_init() from ab8500_regulator_probe(), we can only
register as a platform device on platforms which require them. It means
we also have more control over them when booting with Device Tree.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonielinaro.org>
drivers/regulator/ab8500-ext.c
drivers/regulator/ab8500.c
include/linux/regulator/ab8500.h