projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cd64ae
)
regulator: rk808: Fix uninitialized value
author
Doug Anderson
<dianders@chromium.org>
Fri, 22 Aug 2014 00:54:55 +0000
(17:54 -0700)
committer
Mark Brown
<broonie@linaro.org>
Fri, 22 Aug 2014 02:19:13 +0000
(21:19 -0500)
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>
drivers/regulator/rk808-regulator.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/rk808-regulator.c
b/drivers/regulator/rk808-regulator.c
index 94753fd311c1fb3650db32c4e9c9dc1104ffe5c1..4d5041ceb56a95f895e74598e818281afa7e7e77 100644
(file)
--- 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)
{
struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent);
struct rk808_board *pdata;
- struct regulator_config config;
+ struct regulator_config config
= {}
;
struct regulator_dev *rk808_rdev;
struct regulator_init_data *reg_data;
int i = 0;