]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 20 Aug 2014 08:06:33 +0000 (10:06 +0200)
commit4d3ca576e86e730b8061368ad5555b7c252361ef
tree45d65fb3e5b555444597b7f2c562411f0353eb5a
parente954f972db5b3bacacdc3485917143a65833e20b
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>
Signed-off-by: Huang Shijie <b32955@freescale.com>
drivers/tty/serial/imx.c