diff options
author | Igor Grinberg <grinberg@compulab.co.il> | 2017-12-26 14:33:51 +0200 |
---|---|---|
committer | Robert Jarzmik <robert.jarzmik@free.fr> | 2018-03-07 14:19:47 +0100 |
commit | 6d07f1911e545e77bd57b30590742ad9517ab323 (patch) | |
tree | 903e404c5850154f143d32909f200d11b231a50f /arch/arm/mach-pxa | |
parent | 7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff) | |
download | linux-6d07f1911e545e77bd57b30590742ad9517ab323.tar.gz linux-6d07f1911e545e77bd57b30590742ad9517ab323.tar.bz2 linux-6d07f1911e545e77bd57b30590742ad9517ab323.zip |
ARM: pxa: fix static checker warning in pxa3xx-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 <dan.carpenter@oracle.com>
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r-- | arch/arm/mach-pxa/pxa3xx-ulpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/pxa3xx-ulpi.c b/arch/arm/mach-pxa/pxa3xx-ulpi.c index 60cb59a7ebd1..c00450764352 100644 --- a/arch/arm/mach-pxa/pxa3xx-ulpi.c +++ b/arch/arm/mach-pxa/pxa3xx-ulpi.c @@ -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; |