The patch

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

has been applied to the regulator tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From 4d92ac7bd9f8af387d387173b380f58ad6f98b51 Mon Sep 17 00:00:00 2001
From: Axel Lin <[email protected]>
Date: Sat, 16 Mar 2019 11:52:57 +0800
Subject: [PATCH] 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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
---
 drivers/regulator/as3722-regulator.c | 2 --
 1 file changed, 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) {
-- 
2.20.1

Reply via email to