]> git.karo-electronics.de Git - karo-tx-linux.git/commit
serial: imx: Fix warning when !CONFIG_SERIAL_IMX_CONSOLE
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 5 Jun 2013 03:58:46 +0000 (00:58 -0300)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:54:03 +0000 (09:54 +0800)
commit73e4e685c5f153f47d799014a7c915486c07674b
treeb77992caab81fae421335b0e61d8bcb015251d61
parent15f04cd562a4aada50cca0e6f6b6f05e61447f4d
serial: imx: Fix warning when !CONFIG_SERIAL_IMX_CONSOLE

When CONFIG_SERIAL_IMX_CONSOLE is not selected the following build warnings
appear:

drivers/tty/serial/imx.c:274:13: warning: 'imx_port_ucrs_save' defined but not used [-Wunused-function]
drivers/tty/serial/imx.c:283:13: warning: 'imx_port_ucrs_restore' defined but not used [-Wunused-function]

imx_port_ucrs_save() and imx_port_ucrs_restore() are only used when
CONFIG_CONSOLE_POLL or CONFIG_SERIAL_IMX_CONSOLE are selected, so protect these
functions declaration with a proper ifdef.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Huang Shijie <b32955@freescale.com>
drivers/tty/serial/imx.c