Skip to content

Commit

Permalink
serial: imx: set sport as drvdata, like it's used elsewhere
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Richard Zhao authored and Greg Kroah-Hartman committed Sep 21, 2012
1 parent bd21f55 commit 0a86a86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1540,7 +1540,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:
Expand Down

0 comments on commit 0a86a86

Please sign in to comment.