Skip to contentSkip to conversation

ARM: pxa3xx: fix static checker warning in ulpi

PATCH New Igor Grinberg 2 participants 2 messages Dec 26, 2017 – Dec 28, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: pxa3xx: fix static checker warning in ulpi

Static checker reports the following warning:

arch/arm/mach-pxa/pxa3xx-ulpi.c:336 pxa3xx_u2d_probe()
warn: did you mean to pass the address of 'u2d'

Fix it by passing the correct pointer.

---
 arch/arm/mach-pxa/pxa3xx-ulpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-pxa/pxa3xx-ulpi.c +1 -1
index 60cb59a7ebd1..c00450764352 100644
@@ -331,7 +331,7 @@ static int pxa3xx_u2d_probe(struct platform_device *pdev)
 			goto err_free_plat;
 	}
 
-	platform_set_drvdata(pdev, &u2d);
+	platform_set_drvdata(pdev, u2d);
 
 	return 0;
 
Signature · 1 line
2.13.6
maintainer Applied
#1 lore raw

PATCH 1/1 ARM: pxa3xx: fix static checker warning in ulpi

Quoted 18 lines · Igor Grinberg

Static checker reports the following warning:

arch/arm/mach-pxa/pxa3xx-ulpi.c:336 pxa3xx_u2d_probe()
warn: did you mean to pass the address of 'u2d'

Fix it by passing the correct pointer.

---
 arch/arm/mach-pxa/pxa3xx-ulpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-pxa/pxa3xx-ulpi.c +0 -0
index 60cb59a7ebd1..c00450764352 100644

arch/arm/mach-pxa/pxa3xx-ulpi.c static int pxa3xx_u2d_probe(struct platform_device *pdev) · line 334

Quoted 5 lines
arch/arm/mach-pxa/pxa3xx-ulpi.c +1 -1
@@ -331,7 +331,7 @@ static int pxa3xx_u2d_probe(struct platform_device *pdev)
 			goto err_free_plat;
 	}
 
-	platform_set_drvdata(pdev, &u2d);
+	platform_set_drvdata(pdev, u2d);

Applied to pxa/for-next, thanks.

Cheers.

Signature · 1 line
Robert