Skip to contentSkip to conversation

regulator: act8865: Rmove unneeded regulator_unregister() calls

PATCH Applied Axel Lin 2 participants 2 messages Dec 24, 2013 – Dec 30, 2013 Voltage and current regulator framework

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 regulator: act8865: Rmove unneeded regulator_unregister() calls

This is not required because current code use devm_regulator_register() to register regulators.

---
 drivers/regulator/act8865-regulator.c | 12 ------------
 1 file changed, 12 deletions(-)
drivers/regulator/act8865-regulator.c +0 -12
index db048f2..dfae294 100644
@@ -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,
 };
 
Signature · 1 line
1.8.1.2
maintainer Applied
#1 lore raw
Quoted 2 lines · Axel Lin

This is not required because current code use devm_regulator_register() to register regulators.

Applied, thanks.