[PATCH v2 6/8] serial/imx: drvdata is sport and not &sport->port
Eric Bénard
eric at eukrea.com
Thu May 27 02:33:18 EDT 2010
even if that's the same pointer this is more readable like this
Signed-off-by: Eric Bénard <eric at eukrea.com>
---
drivers/serial/imx.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/serial/imx.c b/drivers/serial/imx.c
index 936f810..a0ebe91 100644
--- a/drivers/serial/imx.c
+++ b/drivers/serial/imx.c
@@ -1311,7 +1311,7 @@ static int serial_imx_probe(struct platform_device *pdev)
ret = uart_add_one_port(&imx_reg, &sport->port);
if (ret)
goto deinit;
- platform_set_drvdata(pdev, &sport->port);
+ platform_set_drvdata(pdev, sport);
return 0;
deinit:
--
1.6.3.3
More information about the linux-arm-kernel
mailing list