diff options
author | Doug Anderson <dianders@chromium.org> | 2014-08-21 20:54:55 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-08-21 22:19:13 -0400 |
commit | 462004f1215ccb77969004a049aa5437f34c9b06 (patch) | |
tree | 11639fa5b27ed0ef1043b4f312348d189ba7848f | |
parent | 2cd64ae3d57b80f6d93682b98a59ed4b124cf2ef (diff) |
regulator: rk808: Fix uninitialized value
The RK808 regulator driver was putting its config on the stack but not
initting it. That means that you got a semi-random config. Fix this.
Signed-off-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | drivers/regulator/rk808-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808-regulator.c index 94753fd311c1..4d5041ceb56a 100644 --- a/drivers/regulator/rk808-regulator.c +++ b/drivers/regulator/rk808-regulator.c | |||
@@ -334,7 +334,7 @@ static int rk808_regulator_probe(struct platform_device *pdev) | |||
334 | { | 334 | { |
335 | struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent); | 335 | struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent); |
336 | struct rk808_board *pdata; | 336 | struct rk808_board *pdata; |
337 | struct regulator_config config; | 337 | struct regulator_config config = {}; |
338 | struct regulator_dev *rk808_rdev; | 338 | struct regulator_dev *rk808_rdev; |
339 | struct regulator_init_data *reg_data; | 339 | struct regulator_init_data *reg_data; |
340 | int i = 0; | 340 | int i = 0; |