* [PATCH] regulator: tps6586x: fix build warning in debug build
@ 2012-11-26 23:14 Laxman Dewangan
2012-11-27 20:20 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Laxman Dewangan @ 2012-11-26 23:14 UTC (permalink / raw)
To: broonie, lrg; +Cc: linux-kernel, swarren, Laxman Dewangan
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>
---
drivers/regulator/tps6586x-regulator.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/regulator/tps6586x-regulator.c b/drivers/regulator/tps6586x-regulator.c
index 9ce4410..f86da67 100644
--- a/drivers/regulator/tps6586x-regulator.c
+++ b/drivers/regulator/tps6586x-regulator.c
@@ -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))
--
1.7.1.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] regulator: tps6586x: fix build warning in debug build
2012-11-26 23:14 [PATCH] regulator: tps6586x: fix build warning in debug build Laxman Dewangan
@ 2012-11-27 20:20 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2012-11-27 20:20 UTC (permalink / raw)
To: Laxman Dewangan; +Cc: lrg, linux-kernel, swarren
[-- Attachment #1: Type: text/plain, Size: 151 bytes --]
On Tue, Nov 27, 2012 at 04:44:28AM +0530, Laxman Dewangan wrote:
> When building the driver in debug mode, it generates
> warning as
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-27 20:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-26 23:14 [PATCH] regulator: tps6586x: fix build warning in debug build Laxman Dewangan
2012-11-27 20:20 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox