]> 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)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:55:54 +0000 (09:55 +0800)
commit282c1e79ccc1a388afc7cc6aa7f57dd3fa2415cb
treebde452e204213e1bccabe4b78d9685eb0f737233
parent32d51caaa2852c4cce3061b455c6c8373b1a7c07
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