aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mfd/tps6105x.c3
-rw-r--r--drivers/regulator/tps6105x-regulator.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/mfd/tps6105x.c b/drivers/mfd/tps6105x.c
index 46d8205646b6..a293b978e27c 100644
--- a/drivers/mfd/tps6105x.c
+++ b/drivers/mfd/tps6105x.c
@@ -183,7 +183,8 @@ static int __devinit tps6105x_probe(struct i2c_client *client,
183 /* Set up and register the platform devices. */ 183 /* Set up and register the platform devices. */
184 for (i = 0; i < ARRAY_SIZE(tps6105x_cells); i++) { 184 for (i = 0; i < ARRAY_SIZE(tps6105x_cells); i++) {
185 /* One state holder for all drivers, this is simple */ 185 /* One state holder for all drivers, this is simple */
186 tps6105x_cells[i].mfd_data = tps6105x; 186 tps6105x_cells[i].platform_data = tps6105x;
187 tps6105x_cells[i].pdata_size = sizeof(*tps6105x);
187 } 188 }
188 189
189 ret = mfd_add_devices(&client->dev, 0, tps6105x_cells, 190 ret = mfd_add_devices(&client->dev, 0, tps6105x_cells,
diff --git a/drivers/regulator/tps6105x-regulator.c b/drivers/regulator/tps6105x-regulator.c
index 1661499feda4..a4d7f4540c18 100644
--- a/drivers/regulator/tps6105x-regulator.c
+++ b/drivers/regulator/tps6105x-regulator.c
@@ -137,7 +137,7 @@ static struct regulator_desc tps6105x_regulator_desc = {
137 */ 137 */
138static int __devinit tps6105x_regulator_probe(struct platform_device *pdev) 138static int __devinit tps6105x_regulator_probe(struct platform_device *pdev)
139{ 139{
140 struct tps6105x *tps6105x = mfd_get_data(pdev); 140 struct tps6105x *tps6105x = dev_get_platdata(&pdev->dev);
141 struct tps6105x_platform_data *pdata = tps6105x->pdata; 141 struct tps6105x_platform_data *pdata = tps6105x->pdata;
142 int ret; 142 int ret;
143 143
@@ -164,7 +164,7 @@ static int __devinit tps6105x_regulator_probe(struct platform_device *pdev)
164 164
165static int __devexit tps6105x_regulator_remove(struct platform_device *pdev) 165static int __devexit tps6105x_regulator_remove(struct platform_device *pdev)
166{ 166{
167 struct tps6105x *tps6105x = platform_get_drvdata(pdev); 167 struct tps6105x *tps6105x = dev_get_platdata(&pdev->dev);
168 regulator_unregister(tps6105x->regulator); 168 regulator_unregister(tps6105x->regulator);
169 return 0; 169 return 0;
170} 170}