ARM: pxa3xx: fix static checker warning in ulpi
Subsystems (3)
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.
Reported-by Dan Carpenter <[email protected]>
Signed-off-by Igor Grinberg <[email protected]>
--- arch/arm/mach-pxa/pxa3xx-ulpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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);return 0 ;
Signature · 1 line
2.13.6
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:336pxa3xx_u2d_probe()
warn: did you mean to pass the address of 'u2d'Fix it by passing the correct pointer.
Reported-by Dan Carpenter <[email protected]>Signed-off-by Igor Grinberg <[email protected]>--- arch/arm/mach-pxa/pxa3xx-ulpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-pxa/pxa3xx-ulpi.c +0
-0
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