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)
commitcdc8da3998dcc50cee2f81904c16ebdbd7ec2cee
treedc09b48a5fd54a3e78c3e93bfae2b0237c8062f5
parentb16ea4b04c3b74524805a409ee2747b751b7a138
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