ARM: pxa: fix static checker warning in pxa3xx-ulpi
authorIgor Grinberg <grinberg@compulab.co.il>
Tue, 26 Dec 2017 12:33:51 +0000 (14:33 +0200)
committerRobert Jarzmik <robert.jarzmik@free.fr>
Wed, 7 Mar 2018 13:19:47 +0000 (14:19 +0100)
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 <dan.carpenter@oracle.com>
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
arch/arm/mach-pxa/pxa3xx-ulpi.c

index 60cb59a7ebd113620dba7998d562ca43b650828d..c004507643526f42b899282fd1f36a79425fb260 100644 (file)
@@ -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;