]> git.baikalelectronics.ru Git - kernel.git/commit
8250: mediatek: mark PM functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Mon, 8 Feb 2016 13:36:13 +0000 (14:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 01:39:36 +0000 (17:39 -0800)
commit26103bf1484f0518a8d0246b1536a7e34174822e
tree5db54745b1809d56d8c54299a75affcdad8ff727
parent722db94f01295da38917bd3643b050625ae6f7c0
8250: mediatek: mark PM functions as __maybe_unused

The mtk8250_runtime_suspend function is not used when runtime PM is
disabled, so we get a warning about an unused function:

drivers/tty/serial/8250/8250_mtk.c:119:12: error: 'mtk8250_runtime_suspend' defined but not used [-Werror=unused-function]
 static int mtk8250_runtime_suspend(struct device *dev)

This marks all the PM functions as __maybe_unused to avoid the warning,
and removes the #ifdef around the PM_SLEEP functions for consistency.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_mtk.c