summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2013-09-01 22:24:35 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-26 14:25:26 -0700
commite2c2725338cb5c51e8f1eada2b3dfb938bdb03ae (patch)
tree7100bea0d81219af0f9f448c06bda13d0a27e8b7 /drivers/tty
parentf377775dc083506e2fd7739d8615971c46b5246e (diff)
downloadblackbird-op-linux-e2c2725338cb5c51e8f1eada2b3dfb938bdb03ae.tar.gz
blackbird-op-linux-e2c2725338cb5c51e8f1eada2b3dfb938bdb03ae.zip
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 <fabio.estevam@freescale.com> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/imx.c3
1 files changed, 2 insertions, 1 deletions
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;
}
OpenPOWER on IntegriCloud