aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-11-26 18:14:28 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-11-27 15:20:04 -0500
commit10835600cf8f3459cb4420fc2a6b9f57bad15307 (patch)
tree9e172d3b69acbaf5153dc828134fbf5250328134
parent64e481603ab46bcd1466fdaffca50f25bf123f83 (diff)
regulator: tps6586x: fix build warning in debug build
When building the driver in debug mode, it generates warning as drivers/regulator/tps6586x-regulator.c: In function 'tps6586x_regulator_probe': drivers/regulator/tps6586x-regulator.c:392:9: warning: 'id' is used uninitialized in this function [-Wuninitialized] Fix this warning. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reported-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--drivers/regulator/tps6586x-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/tps6586x-regulator.c b/drivers/regulator/tps6586x-regulator.c
index 913c903bc3ee..c3e0c9730cda 100644
--- a/drivers/regulator/tps6586x-regulator.c
+++ b/drivers/regulator/tps6586x-regulator.c
@@ -389,7 +389,7 @@ static int __devinit tps6586x_regulator_probe(struct platform_device *pdev)
389 int id; 389 int id;
390 int err; 390 int err;
391 391
392 dev_dbg(&pdev->dev, "Probing regulator %d\n", id); 392 dev_dbg(&pdev->dev, "Probing regulator\n");
393 393
394 pdata = dev_get_platdata(pdev->dev.parent); 394 pdata = dev_get_platdata(pdev->dev.parent);
395 if ((!pdata) && (pdev->dev.parent->of_node)) 395 if ((!pdata) && (pdev->dev.parent->of_node))