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-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=282c1e79ccc1a388afc7cc6aa7f57dd3fa2415cb;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 a0ebbc9ce5cd..65d9b2f4882b 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -1913,7 +1913,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; }