diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-08-02 20:21:22 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-08-03 14:03:04 -0700 |
commit | 780398708668908b7a79c948f2751576b1846618 (patch) | |
tree | 5219575e120d142bf61525ec3da1b2d937392e7e /drivers/regulator | |
parent | baa0de2f50c389a8d20df7eab5cf804bb700502c (diff) |
regulator tps65090: fix compilation warning
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
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/tps65090-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |