serial: imx: set sport as drvdata, like it's used elsewhere
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>
This commit is contained in:
parent
bd21f551c3
commit
0a86a86b92
@ -1540,7 +1540,7 @@ static int serial_imx_probe(struct platform_device *pdev)
|
|||||||
ret = uart_add_one_port(&imx_reg, &sport->port);
|
ret = uart_add_one_port(&imx_reg, &sport->port);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto deinit;
|
goto deinit;
|
||||||
platform_set_drvdata(pdev, &sport->port);
|
platform_set_drvdata(pdev, sport);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
deinit:
|
deinit:
|
||||||
|
Loading…
Reference in New Issue
Block a user