aboutsummaryrefslogtreecommitdiff
path: root/drivers/regulator/pcf50633-regulator.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2010-05-24 23:37:19 +0200
committerLars-Peter Clausen <lars@metafoo.de>2010-06-08 15:37:09 +0200
commit4a29094bdf6ff382b7558e242ddb91c67fc200c7 (patch)
treea6956e158bdcf88c2b916e2f383a810f81acef86 /drivers/regulator/pcf50633-regulator.c
parent7c3f9799aa31d974507bf73e8c29172ecc672ecf (diff)
MFD: pcf50633: Use mfd cells to register child devices
This patch changes the pcf50633 core code to use mfd cells to register child devices instead of calling platform_device_{alloc,add} for each child. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Diffstat (limited to 'drivers/regulator/pcf50633-regulator.c')
-rw-r--r--drivers/regulator/pcf50633-regulator.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/regulator/pcf50633-regulator.c b/drivers/regulator/pcf50633-regulator.c
index c8f41dc05b7..6ef66d971a8 100644
--- a/drivers/regulator/pcf50633-regulator.c
+++ b/drivers/regulator/pcf50633-regulator.c
@@ -313,11 +313,10 @@ static int __devinit pcf50633_regulator_probe(struct platform_device *pdev)
struct regulator_dev *rdev;
struct pcf50633 *pcf;
- /* Already set by core driver */
pcf = dev_to_pcf50633(pdev->dev.parent);
rdev = regulator_register(&regulators[pdev->id], &pdev->dev,
- pdev->dev.platform_data, pcf);
+ &pcf->pdata->reg_init_data[pdev->id], pcf);
if (IS_ERR(rdev))
return PTR_ERR(rdev);