diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-11-08 15:50:42 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-11-10 14:50:46 +0100 |
commit | 65dabaf532ba632d3660fc7943f3fe47c7c56dc0 (patch) | |
tree | 52ca9284be523e79cc13a9cee886d1fb1c386dc9 /drivers/ata | |
parent | 9de4153dbb2416817d341f57e7b194df5111f075 (diff) | |
download | linux-65dabaf532ba632d3660fc7943f3fe47c7c56dc0.tar.bz2 |
serial: pxa2xx: mark PM functions as __maybe_unused
The fresh new serial driver for pxa produces warnings when
CONFIG_PM_SLEEP is disabled:
drivers/tty/serial/8250/8250_pxa.c:50:12: error: 'serial_pxa_resume' defined but not used [-Werror=unused-function]
drivers/tty/serial/8250/8250_pxa.c:41:12: error: 'serial_pxa_suspend' defined but not used [-Werror=unused-function]
This removes the #ifdef around the two functions and instead marks both
as __maybe_unused, which is more robust and avoids the warning.
Fixes: ab28f51c77cd ("serial: rewrite pxa2xx-uart to use 8250_core")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/ata')
0 files changed, 0 insertions, 0 deletions