aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2012-07-02 11:10:56 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2012-07-08 18:16:13 -0400
commitbad76991d7847b7877ae797cc79745d82ffd9120 (patch)
treedcb3c0ae53b8bfcfa9c9094b45cb55a276fe6ba4 /drivers/regulator
parent2968ab133ec790134d4347aa4264c2eb064b42e7 (diff)
mfd: Register ab8500 devices using the newly DT:ed MFD API
Now the MFD API is Device Tree aware we can use it for platform registration again, even when booting with DT enabled. To aid in Device Node pointer allocation we provide each cell with the associative compatible string. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/ab8500.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/regulator/ab8500.c b/drivers/regulator/ab8500.c
index a739f5ca936a..6745bd248da4 100644
--- a/drivers/regulator/ab8500.c
+++ b/drivers/regulator/ab8500.c
@@ -906,18 +906,12 @@ static __devexit int ab8500_regulator_remove(struct platform_device *pdev)
906 return 0; 906 return 0;
907} 907}
908 908
909static const struct of_device_id ab8500_regulator_match[] = {
910 { .compatible = "stericsson,ab8500-regulator", },
911 {}
912};
913
914static struct platform_driver ab8500_regulator_driver = { 909static struct platform_driver ab8500_regulator_driver = {
915 .probe = ab8500_regulator_probe, 910 .probe = ab8500_regulator_probe,
916 .remove = __devexit_p(ab8500_regulator_remove), 911 .remove = __devexit_p(ab8500_regulator_remove),
917 .driver = { 912 .driver = {
918 .name = "ab8500-regulator", 913 .name = "ab8500-regulator",
919 .owner = THIS_MODULE, 914 .owner = THIS_MODULE,
920 .of_match_table = ab8500_regulator_match,
921 }, 915 },
922}; 916};
923 917