From: Doug Anderson Date: Fri, 22 Aug 2014 00:54:55 +0000 (-0700) Subject: regulator: rk808: Fix uninitialized value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=462004f1215ccb77969004a049aa5437f34c9b06;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Mark Brown --- 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) { 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;