mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-09 12:24:07 -05:00
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 <[email protected]> Reported-by: Stephen Warren <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
64e481603a
commit
10835600cf
1 changed files with 1 additions and 1 deletions
|
|
@ -389,7 +389,7 @@ static int __devinit 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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue