提交 dcdf1173 编写于 作者: A Arnd Bergmann 提交者: Lee Jones

mfd: ipaq-micro: Use __maybe_unused to hide pm functions

The ipaq-micro driver uses SET_SYSTEM_SLEEP_PM_OPS() to
remove the reference to its resume function, but does
not use an #ifdef around the definition, so we get
a build warning:

drivers/mfd/ipaq-micro.c:379:12: error: 'micro_resume' defined but not used [-Werror=unused-function]

This adds a __maybe_unused annotation so the compiler knows
it can silently drop it instead of warning.
Signed-off-by: NArnd Bergmann <arnd@arndb.de>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 95a6f715
...@@ -376,7 +376,7 @@ static const struct mfd_cell micro_cells[] = { ...@@ -376,7 +376,7 @@ static const struct mfd_cell micro_cells[] = {
{ .name = "ipaq-micro-leds", }, { .name = "ipaq-micro-leds", },
}; };
static int micro_resume(struct device *dev) static int __maybe_unused micro_resume(struct device *dev)
{ {
struct ipaq_micro *micro = dev_get_drvdata(dev); struct ipaq_micro *micro = dev_get_drvdata(dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册