diff options
author | Rajanikanth H.V <rajanikanth.hv@stericsson.com> | 2012-10-31 15:40:33 +0000 |
---|---|---|
committer | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-11-18 19:37:18 -0800 |
commit | a12810ab9fcf0c9fd5e50b5e350a3ffbeaa571be (patch) | |
tree | 9d691b2cfae398b454854a0c34c0308a7af74adb /drivers/mfd/ab8500-core.c | |
parent | 4aef72dbb2e8997e627dd94ae2b9109dc09fffaa (diff) | |
download | blackbird-op-linux-a12810ab9fcf0c9fd5e50b5e350a3ffbeaa571be.tar.gz blackbird-op-linux-a12810ab9fcf0c9fd5e50b5e350a3ffbeaa571be.zip |
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/ab8500-core.c')
-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 c7a120bfd50a..5ec70f26b9d5 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 }, }; |