]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
regulator: max8973: Remove unused field from 'struct max8973_chip'
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 10 Mar 2014 08:32:51 +0000 (09:32 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 10 Mar 2014 09:36:42 +0000 (09:36 +0000)
The 'struct regulator_dev *rdev' of 'struct max8973_chip' isn't used
anywhere in the driver so it can be removed safely.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/max8973-regulator.c

index 79f57fef0038057a1da01f1f2ab155ed35b9aa3d..dbedf1768db0268f4f07f168bb89eb36f0c74429 100644 (file)
@@ -93,7 +93,6 @@
 struct max8973_chip {
        struct device *dev;
        struct regulator_desc desc;
-       struct regulator_dev *rdev;
        struct regmap *regmap;
        bool enable_external_control;
        int dvs_gpio;
@@ -472,7 +471,6 @@ static int max8973_probe(struct i2c_client *client,
                return ret;
        }
 
-       max->rdev = rdev;
        return 0;
 }