diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-12-24 23:41:22 +0800 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-12-30 11:59:12 +0000 |
commit | d5e17e2634a4370188e65c8839ff33911adb207b (patch) | |
tree | 0fc82f83e898ec8bf135ee0bb6329c1550b1b878 | |
parent | cbfadd3dfb887c675702e4f9029f2c91a308c078 (diff) | |
download | op-kernel-dev-d5e17e2634a4370188e65c8839ff33911adb207b.zip op-kernel-dev-d5e17e2634a4370188e65c8839ff33911adb207b.tar.gz |
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.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/regulator/act8865-regulator.c b/drivers/regulator/act8865-regulator.c index db048f2..dfae294 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, 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 }, { }, @@ -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, }; |