diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2010-05-24 23:37:19 +0200 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2010-06-08 15:37:09 +0200 |
commit | 4a29094bdf6ff382b7558e242ddb91c67fc200c7 (patch) | |
tree | a6956e158bdcf88c2b916e2f383a810f81acef86 /drivers/regulator/pcf50633-regulator.c | |
parent | 7c3f9799aa31d974507bf73e8c29172ecc672ecf (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.c | 3 |
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(®ulators[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); |