mfd: Ensure AB8500 platform data is passed through db8500-prcmu to MFD Core
authorLee Jones <lee.jones@linaro.org>
Fri, 27 Jul 2012 12:38:50 +0000 (13:38 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 27 Jul 2012 13:32:33 +0000 (15:32 +0200)
When booting via platform code the AB8500 platform data is now passed
in though the DB8500. However, if pdata_size is not set it will not be
subsequently passed onto subordinate devices. This patch correctly
populates pdata_size.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/db8500-prcmu.c

index 4050a1e1872b9d146bcf82c3d525ebfb50c2bb15..7040a0081130c93ce6b73145355abec0a8c571b8 100644 (file)
@@ -3002,6 +3002,7 @@ static int __devinit db8500_prcmu_probe(struct platform_device *pdev)
        for (i = 0; i < ARRAY_SIZE(db8500_prcmu_devs); i++) {
                if (!strcmp(db8500_prcmu_devs[i].name, "ab8500-core")) {
                        db8500_prcmu_devs[i].platform_data = ab8500_platdata;
+                       db8500_prcmu_devs[i].pdata_size = sizeof(struct ab8500_platform_data);
                }
        }