* [PATCH] regulator: act8865: Rmove unneeded regulator_unregister() calls
@ 2013-12-24 15:41 Axel Lin
2013-12-30 11:59 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2013-12-24 15:41 UTC (permalink / raw)
To: Mark Brown; +Cc: Wenyou Yang, Liam Girdwood, linux-kernel
This is not required because current code use devm_regulator_register() to
register regulators.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
drivers/regulator/act8865-regulator.c | 12 ------------
1 file changed, 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,
};
--
1.8.1.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] regulator: act8865: Rmove unneeded regulator_unregister() calls
2013-12-24 15:41 [PATCH] regulator: act8865: Rmove unneeded regulator_unregister() calls Axel Lin
@ 2013-12-30 11:59 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2013-12-30 11:59 UTC (permalink / raw)
To: Axel Lin; +Cc: Wenyou Yang, Liam Girdwood, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 176 bytes --]
On Tue, Dec 24, 2013 at 11:41:22PM +0800, Axel Lin wrote:
> This is not required because current code use devm_regulator_register() to
> register regulators.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-30 11:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-24 15:41 [PATCH] regulator: act8865: Rmove unneeded regulator_unregister() calls Axel Lin
2013-12-30 11:59 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox