From 780398708668908b7a79c948f2751576b1846618 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Thu, 2 Aug 2012 20:21:22 +0530 Subject: regulator tps65090: fix compilation warning Fix compilation warning of -Wmaybe-uninitialized Change-Id: Iad929f87205723cc906d2520630c2e1f20df4cf6 Signed-off-by: Laxman Dewangan Reviewed-on: http://git-master/r/120843 Reviewed-by: Automatic_Commit_Validation_User --- drivers/regulator/tps65090-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/regulator') diff --git a/drivers/regulator/tps65090-regulator.c b/drivers/regulator/tps65090-regulator.c index 82b022dd134d..4ec3401af6a5 100644 --- a/drivers/regulator/tps65090-regulator.c +++ b/drivers/regulator/tps65090-regulator.c @@ -52,7 +52,7 @@ static int tps65090_reg_is_enabled(struct regulator_dev *rdev) { struct tps65090_regulator *ri = rdev_get_drvdata(rdev); struct device *parent = to_tps65090_dev(rdev); - uint8_t control; + uint8_t control = 0; int ret; ret = tps65090_read(parent, ri->rinfo->reg_en_reg, &control); -- cgit v1.2.3