serial: omap: remove warnings about unused functions
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Sat, 3 Oct 2015 19:45:35 +0000 (16:45 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 18:14:26 +0000 (19:14 +0100)
commitadfb9233e434896e87811339ca0c18bc923b262f
tree8a2956af7f84dabb8e66c22c7e0b56cb9a131f13
parentfc12c116b1982c61dfbb6c00673dac50cc2bd7b5
serial: omap: remove warnings about unused functions

They're used by only if CONFIG_PM is enabled, so enclose them
with proper ifdefs. Removes these warnings:

drivers/tty/serial/omap-serial.c:202:12: warning: 'serial_omap_get_context_loss_count' defined but not used [-Wunused-function]
drivers/tty/serial/omap-serial.c:213:13: warning: 'serial_omap_enable_wakeup' defined but not used [-Wunused-function]

Signed-off-by: Guido Martínez <guido@vanguardiasur.com.ar>
Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/omap-serial.c