aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2014-03-10 09:32:51 +0100
committerMark Brown <broonie@linaro.org>2014-03-10 09:36:42 +0000
commit9654fbe9cda227bb1881f20cc69a7f477a4537f9 (patch)
treeb6860bbebf2fe9ee442ca2894d1283a94374b96b /drivers/regulator
parentregulator: max8973: Remove redundant error message (diff)
downloadlinux-dev-9654fbe9cda227bb1881f20cc69a7f477a4537f9.tar.xz
linux-dev-9654fbe9cda227bb1881f20cc69a7f477a4537f9.zip
regulator: max8973: Remove unused field from 'struct max8973_chip'
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>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/max8973-regulator.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/regulator/max8973-regulator.c b/drivers/regulator/max8973-regulator.c
index 79f57fef0038..dbedf1768db0 100644
--- a/drivers/regulator/max8973-regulator.c
+++ b/drivers/regulator/max8973-regulator.c
@@ -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;
}