diff options
author | Rajanikanth H.V <rajanikanth.hv@stericsson.com> | 2012-10-31 15:40:33 (GMT) |
---|---|---|
committer | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-11-19 03:37:18 (GMT) |
commit | a12810ab9fcf0c9fd5e50b5e350a3ffbeaa571be (patch) | |
tree | 9d691b2cfae398b454854a0c34c0308a7af74adb /drivers/mfd | |
parent | 4aef72dbb2e8997e627dd94ae2b9109dc09fffaa (diff) | |
download | linux-fsl-qoriq-a12810ab9fcf0c9fd5e50b5e350a3ffbeaa571be.tar.xz |
ab8500: Add devicetree support for chargalg
This patch adds device tree support for charging algorithm driver
Signed-off-by: Rajanikanth H.V <rajanikanth.hv@stericsson.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/ab8500-core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c index c7a120b..5ec70f2 100644 --- a/drivers/mfd/ab8500-core.c +++ b/drivers/mfd/ab8500-core.c @@ -1071,8 +1071,13 @@ static struct mfd_cell __devinitdata ab8500_bm_devs[] = { }, { .name = "ab8500-chargalg", + .of_compatible = "stericsson,ab8500-chargalg", .num_resources = ARRAY_SIZE(ab8500_chargalg_resources), .resources = ab8500_chargalg_resources, +#ifndef CONFIG_OF + .platform_data = &ab8500_bm_data, + .pdata_size = sizeof(ab8500_bm_data), +#endif }, }; |