aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2009-10-17 05:03:09 +0400
committerPaul Fertser <fercerpav@gmail.com>2009-10-17 05:03:09 +0400
commitadb98df68b6e6367ca1e39fc8df3ce32efbe1ae2 (patch)
treeea5ecd6985528a4a6e2b5f84af5d088a271dff19 /drivers
parent3cc444df2d19d0166e544ae01c0c79fd4a806646 (diff)
Use platform_device_add_data to set regulator platform data
Ported from 0231c22f5955bbe72c88815f119198c734149e00
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mfd/pcf50606-core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mfd/pcf50606-core.c b/drivers/mfd/pcf50606-core.c
index 8aad6af951a..f886893929d 100644
--- a/drivers/mfd/pcf50606-core.c
+++ b/drivers/mfd/pcf50606-core.c
@@ -597,7 +597,8 @@ static int pcf50606_probe(struct i2c_client *client,
}
pdev->dev.parent = pcf->dev;
- pdev->dev.platform_data = &pdata->reg_init_data[i];
+ platform_device_add_data(pdev, &pdata->reg_init_data[i],
+ sizeof(pdata->reg_init_data[i]));
pdev->dev.driver_data = pcf;
pcf->regulator_pdev[i] = pdev;