serial: imx: Use NULL as the last argument of add_preferred_console()
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 2 Sep 2013 01:24:35 +0000 (22:24 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 21:25:26 +0000 (14:25 -0700)
commite2c2725338cb5c51e8f1eada2b3dfb938bdb03ae
tree7100bea0d81219af0f9f448c06bda13d0a27e8b7
parentf377775dc083506e2fd7739d8615971c46b5246e
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>
drivers/tty/serial/imx.c