提交 a4a5d493 编写于 作者: A Arnd Bergmann 提交者: Tony Lindgren

bus: ti-sysc: mark PM functions as __maybe_unused

The new bus driver causes a harmless compile-time warning when
CONFIG_PM is disabled:

drivers/bus/ti-sysc.c:440:12: error: 'sysc_runtime_resume' defined but not used [-Werror=unused-function]
 static int sysc_runtime_resume(struct device *dev)
            ^~~~~~~~~~~~~~~~~~~
drivers/bus/ti-sysc.c:421:12: error: 'sysc_runtime_suspend' defined but not used [-Werror=unused-function]
 static int sysc_runtime_suspend(struct device *dev)
            ^~~~~~~~~~~~~~~~~~~~

This marks the two unused functions as __maybe_unused to shut up
that warning.

Fixes: 0eecc636 ("bus: ti-sysc: Add minimal TI sysc interconnect target driver")
Signed-off-by: NArnd Bergmann <arnd@arndb.de>
Signed-off-by: NTony Lindgren <tony@atomide.com>
上级 552ee302
......@@ -418,7 +418,7 @@ static void sysc_show_registers(struct sysc *ddata)
buf);
}
static int sysc_runtime_suspend(struct device *dev)
static int __maybe_unused sysc_runtime_suspend(struct device *dev)
{
struct sysc *ddata;
int i;
......@@ -437,7 +437,7 @@ static int sysc_runtime_suspend(struct device *dev)
return 0;
}
static int sysc_runtime_resume(struct device *dev)
static int __maybe_unused sysc_runtime_resume(struct device *dev)
{
struct sysc *ddata;
int i, error;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册