提交 6d07f191 编写于 作者: I Igor Grinberg 提交者: Robert Jarzmik

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: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NIgor Grinberg <grinberg@compulab.co.il>
Signed-off-by: NRobert Jarzmik <robert.jarzmik@free.fr>
上级 7928b2cb
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册