aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-12-24 10:41:22 -0500
committerMark Brown <broonie@linaro.org>2013-12-30 06:59:12 -0500
commitd5e17e2634a4370188e65c8839ff33911adb207b (patch)
tree0fc82f83e898ec8bf135ee0bb6329c1550b1b878
parentcbfadd3dfb887c675702e4f9029f2c91a308c078 (diff)
regulator: act8865: Remove unneeded regulator_unregister() calls
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>
-rw-r--r--drivers/regulator/act8865-regulator.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/regulator/act8865-regulator.c b/drivers/regulator/act8865-regulator.c
index db048f20745b..dfae29488f1c 100644
--- a/drivers/regulator/act8865-regulator.c
+++ b/drivers/regulator/act8865-regulator.c
@@ -334,17 +334,6 @@ static int act8865_pmic_probe(struct i2c_client *client,
334 return 0; 334 return 0;
335} 335}
336 336
337static int act8865_pmic_remove(struct i2c_client *client)
338{
339 struct act8865 *act8865 = i2c_get_clientdata(client);
340 int i;
341
342 for (i = 0; i < ACT8865_REG_NUM; i++)
343 regulator_unregister(act8865->rdev[i]);
344
345 return 0;
346}
347
348static const struct i2c_device_id act8865_ids[] = { 337static const struct i2c_device_id act8865_ids[] = {
349 { "act8865", 0 }, 338 { "act8865", 0 },
350 { }, 339 { },
@@ -357,7 +346,6 @@ static struct i2c_driver act8865_pmic_driver = {
357 .owner = THIS_MODULE, 346 .owner = THIS_MODULE,
358 }, 347 },
359 .probe = act8865_pmic_probe, 348 .probe = act8865_pmic_probe,
360 .remove = act8865_pmic_remove,
361 .id_table = act8865_ids, 349 .id_table = act8865_ids,
362}; 350};
363 351