diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/pcf50633-core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mfd/pcf50633-core.c b/drivers/mfd/pcf50633-core.c index 69cdbdcd2e82..1774f60b1b2a 100644 --- a/drivers/mfd/pcf50633-core.c +++ b/drivers/mfd/pcf50633-core.c | |||
@@ -611,7 +611,8 @@ static int __devinit pcf50633_probe(struct i2c_client *client, | |||
611 | } | 611 | } |
612 | 612 | ||
613 | pdev->dev.parent = pcf->dev; | 613 | pdev->dev.parent = pcf->dev; |
614 | pdev->dev.platform_data = &pdata->reg_init_data[i]; | 614 | platform_device_add_data(pdev, &pdata->reg_init_data[i], |
615 | sizeof(pdata->reg_init_data[i])); | ||
615 | dev_set_drvdata(&pdev->dev, pcf); | 616 | dev_set_drvdata(&pdev->dev, pcf); |
616 | pcf->regulator_pdev[i] = pdev; | 617 | pcf->regulator_pdev[i] = pdev; |
617 | 618 | ||