regulator tps65090: fix compilation warning
Laxman Dewangan [Thu, 2 Aug 2012 14:51:22 +0000 (19:51 +0530)]
Fix compilation warning of -Wmaybe-uninitialized

Change-Id: Iad929f87205723cc906d2520630c2e1f20df4cf6
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120843
Reviewed-by: Automatic_Commit_Validation_User

drivers/regulator/tps65090-regulator.c

index 82b022d..4ec3401 100644 (file)
@@ -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);