summaryrefslogtreecommitdiff
path: root/drivers/mfd
diff options
context:
space:
mode:
authorPhilippe Langlais <philippe.langlais@linaro.org>2011-05-11 09:32:05 +0200
committerUlf Hansson <ulf.hansson@stericsson.com>2011-09-19 15:15:13 +0200
commit0ceaa9d4f0315be29e7779b69a50031d36a33bfb (patch)
tree635bd2d182619816577d503d6fa55e2ec6b99800 /drivers/mfd
parentdcab2d1882e6fc40034331db34f2913a2ac29b30 (diff)
ab5500: placeholder to pass devices platform data
Added placeholder in struct ab5500_platform_data to add platform data of ab5500 devices. Change-Id: I020cbcfd344d19c7f4268638ebf147e7080b127d Signed-off-by: Shreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/21907 Reviewed-by: Mattias WALLIN <mattias.wallin@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Diffstat (limited to 'drivers/mfd')
-rwxr-xr-xdrivers/mfd/ab5500-core.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mfd/ab5500-core.c b/drivers/mfd/ab5500-core.c
index 7b4099ddb0a..43f7cad48e7 100755
--- a/drivers/mfd/ab5500-core.c
+++ b/drivers/mfd/ab5500-core.c
@@ -2366,6 +2366,11 @@ static int __init ab5500_probe(struct platform_device *pdev)
goto exit_no_irq;
}
+ /* Set up and register the platform devices. */
+ for (i = 0; i < AB5500_NUM_DEVICES; i++) {
+ ab5500_devs[i].mfd_data = ab5500_plf_data->dev_data[i];
+ }
+
err = mfd_add_devices(&pdev->dev, 0, ab5500_devs,
ARRAY_SIZE(ab5500_devs), NULL,
ab5500_plf_data->irq.base);