From: Fabio Estevam Date: Mon, 2 Sep 2013 01:24:35 +0000 (-0300) Subject: serial: imx: Use NULL as the last argument of add_preferred_console() X-Git-Tag: KARO-TX6-2014-07-10~201 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=81a3752b5f610da0ab7fa616a66f1e343e6096f4;p=karo-tx-linux.git serial: imx: Use NULL as the last argument of add_preferred_console() Commit f7d2c0bbd (serial: i.MX: evaluate linux,stdout-path property) introduced the following sparse warning: drivers/tty/serial/imx.c:1916:77: warning: Using plain integer as NULL pointer Pass NULL as the last argument of add_preferred_console() instead of zero. Signed-off-by: Fabio Estevam Acked-by: Sascha Hauer Signed-off-by: Greg Kroah-Hartman Signed-off-by: Huang Shijie --- diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index cc7161c43650..669818540735 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -1866,7 +1866,8 @@ static int serial_imx_probe_dt(struct imx_port *sport, sport->devdata = of_id->data; if (of_device_is_stdout_path(np)) - add_preferred_console(imx_reg.cons->name, sport->port.line, 0); + add_preferred_console(imx_reg.cons->name, sport->port.line, + NULL); return 0; }