Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308728
b: refs/heads/master
c: bbf6adc
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Samuel Ortiz committed May 9, 2012
1 parent b9aa910 commit 57e0c06
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: 0ef4619c74ef1e24e9ee340f95ee922f970cde54
refs/heads/master: bbf6adc10cb2d5a1345cc66e61b3891d42a9afbe
4 changes: 1 addition & 3 deletions trunk/drivers/mfd/twl6040-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ static int __devinit twl6040_probe(struct i2c_client *client,
goto err;
}

twl6040->regmap = regmap_init_i2c(client, &twl6040_regmap_config);
twl6040->regmap = devm_regmap_init_i2c(client, &twl6040_regmap_config);
if (IS_ERR(twl6040->regmap)) {
ret = PTR_ERR(twl6040->regmap);
goto err;
Expand Down Expand Up @@ -623,7 +623,6 @@ static int __devinit twl6040_probe(struct i2c_client *client,
gpio_free(twl6040->audpwron);
gpio1_err:
i2c_set_clientdata(client, NULL);
regmap_exit(twl6040->regmap);
err:
return ret;
}
Expand All @@ -643,7 +642,6 @@ static int __devexit twl6040_remove(struct i2c_client *client)

mfd_remove_devices(&client->dev);
i2c_set_clientdata(client, NULL);
regmap_exit(twl6040->regmap);

return 0;
}
Expand Down

0 comments on commit 57e0c06

Please sign in to comment.