aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorShreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com>2011-04-29 10:21:19 +0530
committerSrinidhi KASAGAR <srinidhi.kasagar@stericsson.com>2011-05-04 06:50:30 +0200
commitc2547ad61b7c89245890aaf6a9e4f816545bee19 (patch)
tree6f39c454a06e585b38e2e06d50532e0c869140d2 /drivers
parent2ebb1cb6cfd98e237f36842ddfee080cf6c02e68 (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')
-rwxr-xr-xdrivers/mfd/ab5500-core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mfd/ab5500-core.c b/drivers/mfd/ab5500-core.c
index 14aa3747d36..6496a25fd7f 100755
--- a/drivers/mfd/ab5500-core.c
+++ b/drivers/mfd/ab5500-core.c
@@ -2366,6 +2366,12 @@ 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].platform_data = ab5500_plf_data->dev_data[i];
+ ab5500_devs[i].data_size = ab5500_plf_data->dev_data_sz[i];
+ }
+
err = mfd_add_devices(&pdev->dev, 0, ab5500_devs,
ARRAY_SIZE(ab5500_devs), NULL,
ab5500_plf_data->irq.base);