Commit 4d92ac7b authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

regulator: as3722: Remove *rdevs[] from struct as3722_regulators

Current code is using devm_regulator_register() so it is not necessary
to save as3722_regs->rdevs[id] for clean up.
The *rdevs[] is not used now, remove it.
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 9cff0371
...@@ -81,7 +81,6 @@ struct as3722_regulator_config_data { ...@@ -81,7 +81,6 @@ struct as3722_regulator_config_data {
struct as3722_regulators { struct as3722_regulators {
struct device *dev; struct device *dev;
struct as3722 *as3722; struct as3722 *as3722;
struct regulator_dev *rdevs[AS3722_REGULATOR_ID_MAX];
struct regulator_desc desc[AS3722_REGULATOR_ID_MAX]; struct regulator_desc desc[AS3722_REGULATOR_ID_MAX];
struct as3722_regulator_config_data struct as3722_regulator_config_data
reg_config_data[AS3722_REGULATOR_ID_MAX]; reg_config_data[AS3722_REGULATOR_ID_MAX];
...@@ -929,7 +928,6 @@ static int as3722_regulator_probe(struct platform_device *pdev) ...@@ -929,7 +928,6 @@ static int as3722_regulator_probe(struct platform_device *pdev)
return ret; return ret;
} }
as3722_regs->rdevs[id] = rdev;
if (reg_config->ext_control) { if (reg_config->ext_control) {
ret = regulator_enable_regmap(rdev); ret = regulator_enable_regmap(rdev);
if (ret < 0) { if (ret < 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment