aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/sccnxp.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2017-05-22 13:37:03 +0000
committerGreg Kroah-Hartman <[email protected]>2017-05-24 13:15:56 +0000
commit5fa4accf5efad012731bf36222815d7df8c17ba6 (patch)
treea61826c2fe0c27087362f36aea4b986eda378ce8 /drivers/tty/serial/sccnxp.c
parentserial: xilinx_uartps: Fix the error path (diff)
downloadkernel-5fa4accf5efad012731bf36222815d7df8c17ba6.tar.gz
kernel-5fa4accf5efad012731bf36222815d7df8c17ba6.zip
serial: meson: hide an unused function
The newly added meson_uart_enable_tx_engine function is only called from the console setup, not the runtime uart, which has an open-coded version of the same register access. This produces a harmless warning when the console code is disabled: drivers/tty/serial/meson_uart.c:127:13: error: 'meson_uart_enable_tx_engine' defined but not used [-Werror=unused-function] Let's move the function inside of the #ifdef to avoid the warning. Fixes: ba50f1df13c8 ("serial: meson: remove unneeded variable assignment in meson_serial_port_write") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
0 files changed, 0 insertions, 0 deletions