]> git.karo-electronics.de Git - linux-beck.git/commitdiff
regulator: tps65217: Remove *rdev[] from struct tps65217
authorAxel Lin <axel.lin@ingics.com>
Tue, 15 Apr 2014 11:47:38 +0000 (19:47 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 18 Apr 2014 14:47:39 +0000 (15:47 +0100)
Now this driver uses devm_regulator_register() so we don't need to save rdev
pointer to tps->rdev[i] for cleanup.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/tps65217-regulator.c
include/linux/mfd/tps65217.h

index 10b78d2b766aa3394b1ee51b2bf47e616f6f95d4..8482f6ba08a1278788b4331039bae679d04157f6 100644 (file)
@@ -257,9 +257,6 @@ static int tps65217_regulator_probe(struct platform_device *pdev)
                                pdev->name);
                        return PTR_ERR(rdev);
                }
-
-               /* Save regulator for cleanup */
-               tps->rdev[i] = rdev;
        }
        return 0;
 }
index 54b5458ec084a50ec06cc9f418d4e623e0aaf7bc..95d6938737fd291b3ab4c340053f21415521bdb9 100644 (file)
@@ -254,7 +254,6 @@ struct tps65217 {
        struct tps65217_board *pdata;
        unsigned long id;
        struct regulator_desc desc[TPS65217_NUM_REGULATOR];
-       struct regulator_dev *rdev[TPS65217_NUM_REGULATOR];
        struct regmap *regmap;
 };