Skip to contentSkip to conversation

regulator: tps6586x: fix build warning in debug build

PATCH Applied Laxman Dewangan 2 participants 2 messages Nov 26, 2012 – Nov 27, 2012 Voltage and current regulator framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/regulator/tps6586x-regulator.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/regulator/tps6586x-regulator.c +1 -1
index 9ce4410..f86da67 100644
@@ -389,7 +389,7 @@ static int tps6586x_regulator_probe(struct platform_device *pdev)
 	int id;
 	int err;
 
-	dev_dbg(&pdev->dev, "Probing regulator %d\n", id);
+	dev_dbg(&pdev->dev, "Probing regulator\n");
 
 	pdata = dev_get_platdata(pdev->dev.parent);
 	if ((!pdata) && (pdev->dev.parent->of_node))
Signature · 1 line
1.7.1.1
Applied
#1 lore raw
Quoted 2 lines · Laxman Dewangan

When building the driver in debug mode, it generates warning as

Applied, thanks.