diff options
author | Rajanikanth H.V <rajanikanth.hv@stericsson.com> | 2012-10-31 16:40:33 +0100 |
---|---|---|
committer | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-11-19 04:37:18 +0100 |
commit | a12810ab9fcf0c9fd5e50b5e350a3ffbeaa571be (patch) | |
tree | 9d691b2cfae398b454854a0c34c0308a7af74adb /drivers/mfd/ab8500-core.c | |
parent | ab8500: Add devicetree support for charger (diff) | |
download | linux-a12810ab9fcf0c9fd5e50b5e350a3ffbeaa571be.tar.xz 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 }, }; |