]> git.baikalelectronics.ru Git - kernel.git/commit
serial: imx: Move imx_port_ucrs_save/restore under CONFIG_CONSOLE_POLL
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 5 Feb 2013 18:12:31 +0000 (16:12 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Feb 2013 19:13:51 +0000 (11:13 -0800)
commit36979f4361731fb7bc322bd838bf1db88510adc7
treedc09b48a5fd54a3e78c3e93bfae2b0237c8062f5
parent388a0ed85fa258a15af1f57f4cdcdcd8bd94f2f9
serial: imx: Move imx_port_ucrs_save/restore under CONFIG_CONSOLE_POLL

If CONFIG_CONSOLE_POLL is not defined, the following build warning happens:

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]

Move imx_port_ucrs_saver/restore under CONFIG_CONSOLE_POLL ifdef block to fix it.

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