Skip to content

Commit

Permalink
regulator: act8865: Remove unneeded regulator_unregister() calls
Browse files Browse the repository at this point in the history
This is not required because current code use devm_regulator_register() to
register regulators.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Axel Lin authored and Mark Brown committed Dec 30, 2013
1 parent cbfadd3 commit d5e17e2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions drivers/regulator/act8865-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,17 +334,6 @@ static int act8865_pmic_probe(struct i2c_client *client,
return 0;
}

static int act8865_pmic_remove(struct i2c_client *client)
{
struct act8865 *act8865 = i2c_get_clientdata(client);
int i;

for (i = 0; i < ACT8865_REG_NUM; i++)
regulator_unregister(act8865->rdev[i]);

return 0;
}

static const struct i2c_device_id act8865_ids[] = {
{ "act8865", 0 },
{ },
Expand All @@ -357,7 +346,6 @@ static struct i2c_driver act8865_pmic_driver = {
.owner = THIS_MODULE,
},
.probe = act8865_pmic_probe,
.remove = act8865_pmic_remove,
.id_table = act8865_ids,
};

Expand Down

0 comments on commit d5e17e2

Please sign in to comment.