Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302193
b: refs/heads/master
c: 9a4bdd8
h: refs/heads/master
i:
  302191: fb7af3c
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Apr 10, 2012
1 parent 932bd12 commit e12c0ef
Show file tree
Hide file tree
Showing 2 changed files with 2 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: dc553a7994e5492237562c7a5400e4b13111ff92
refs/heads/master: 9a4bdd87a29bf297d9046410b011d726d51c3999
4 changes: 1 addition & 3 deletions trunk/drivers/regulator/tps62360-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ static int __devinit tps62360_probe(struct i2c_client *client,
tps->desc.ops = &tps62360_dcdc_ops;
tps->desc.type = REGULATOR_VOLTAGE;
tps->desc.owner = THIS_MODULE;
tps->regmap = regmap_init_i2c(client, &tps62360_regmap_config);
tps->regmap = devm_regmap_init_i2c(client, &tps62360_regmap_config);
if (IS_ERR(tps->regmap)) {
ret = PTR_ERR(tps->regmap);
dev_err(&client->dev, "%s() Err: Failed to allocate register"
Expand Down Expand Up @@ -408,7 +408,6 @@ static int __devinit tps62360_probe(struct i2c_client *client,
if (gpio_is_valid(tps->vsel0_gpio))
gpio_free(tps->vsel0_gpio);
err_gpio0:
regmap_exit(tps->regmap);
return ret;
}

Expand All @@ -429,7 +428,6 @@ static int __devexit tps62360_remove(struct i2c_client *client)
gpio_free(tps->vsel0_gpio);

regulator_unregister(tps->rdev);
regmap_exit(tps->regmap);
return 0;
}

Expand Down

0 comments on commit e12c0ef

Please sign in to comment.