diff options
author | Axel Lin <axel.lin@ingics.com> | 2019-03-16 04:52:57 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-03-18 13:00:34 +0100 |
commit | 4d92ac7bd9f8af387d387173b380f58ad6f98b51 (patch) | |
tree | a88f03bb75465d76d17641ad879f64919f38a3aa /drivers/regulator/as3722-regulator.c | |
parent | regulator: da9052: Include linux/of.h to fix build warning for of_match_ptr (diff) | |
download | linux-4d92ac7bd9f8af387d387173b380f58ad6f98b51.tar.xz linux-4d92ac7bd9f8af387d387173b380f58ad6f98b51.zip |
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: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/as3722-regulator.c')
-rw-r--r-- | drivers/regulator/as3722-regulator.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/regulator/as3722-regulator.c b/drivers/regulator/as3722-regulator.c index e5fed289b52d..7a315adbe6c4 100644 --- a/drivers/regulator/as3722-regulator.c +++ b/drivers/regulator/as3722-regulator.c @@ -81,7 +81,6 @@ struct as3722_regulator_config_data { struct as3722_regulators { struct device *dev; struct as3722 *as3722; - struct regulator_dev *rdevs[AS3722_REGULATOR_ID_MAX]; struct regulator_desc desc[AS3722_REGULATOR_ID_MAX]; struct as3722_regulator_config_data reg_config_data[AS3722_REGULATOR_ID_MAX]; @@ -929,7 +928,6 @@ static int as3722_regulator_probe(struct platform_device *pdev) return ret; } - as3722_regs->rdevs[id] = rdev; if (reg_config->ext_control) { ret = regulator_enable_regmap(rdev); if (ret < 0) { |