Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251915
b: refs/heads/master
c: a7c98ce
h: refs/heads/master
i:
  251913: 1d3e094
  251911: 6b63001
v: v3
  • Loading branch information
Samuel Ortiz committed May 26, 2011
1 parent 7010721 commit 1d070d4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a4579ad2bb6557834ebfafc8d2942891516fb4ad
refs/heads/master: a7c98ce25cfa600bd614134a82d22bcb7bcb9d65
3 changes: 2 additions & 1 deletion trunk/drivers/mfd/tps6105x.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ static int __devinit tps6105x_probe(struct i2c_client *client,
/* Set up and register the platform devices. */
for (i = 0; i < ARRAY_SIZE(tps6105x_cells); i++) {
/* One state holder for all drivers, this is simple */
tps6105x_cells[i].mfd_data = tps6105x;
tps6105x_cells[i].platform_data = tps6105x;
tps6105x_cells[i].pdata_size = sizeof(*tps6105x);
}

ret = mfd_add_devices(&client->dev, 0, tps6105x_cells,
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/regulator/tps6105x-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ static struct regulator_desc tps6105x_regulator_desc = {
*/
static int __devinit tps6105x_regulator_probe(struct platform_device *pdev)
{
struct tps6105x *tps6105x = mfd_get_data(pdev);
struct tps6105x *tps6105x = dev_get_platdata(&pdev->dev);
struct tps6105x_platform_data *pdata = tps6105x->pdata;
int ret;

Expand All @@ -164,7 +164,7 @@ static int __devinit tps6105x_regulator_probe(struct platform_device *pdev)

static int __devexit tps6105x_regulator_remove(struct platform_device *pdev)
{
struct tps6105x *tps6105x = platform_get_drvdata(pdev);
struct tps6105x *tps6105x = dev_get_platdata(&pdev->dev);
regulator_unregister(tps6105x->regulator);
return 0;
}
Expand Down

0 comments on commit 1d070d4

Please sign in to comment.