From: Fabio Estevam Date: Wed, 5 Jun 2013 03:58:46 +0000 (-0300) Subject: serial: imx: Fix warning when !CONFIG_SERIAL_IMX_CONSOLE X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~77^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8bfa7607342a21af06a0d365bf2f1d3062643bd;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed