aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-10-13 05:25:32 -0400
committerTony Lindgren <tony@atomide.com>2017-10-13 13:27:17 -0400
commita4a5d493ebbc680121b584afcaa2c955b6281d0c (patch)
tree54cb3e7ffe402991b0f1e142ff0a873500973a0f
parent552ee3021cd79feb4203df1d594533fa9c8e1595 (diff)
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: 0eecc636e5a2 ("bus: ti-sysc: Add minimal TI sysc interconnect target driver") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--drivers/bus/ti-sysc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c
index 9b3cb278ce41..8b95d0f0c319 100644
--- a/drivers/bus/ti-sysc.c
+++ b/drivers/bus/ti-sysc.c
@@ -418,7 +418,7 @@ static void sysc_show_registers(struct sysc *ddata)
418 buf); 418 buf);
419} 419}
420 420
421static int sysc_runtime_suspend(struct device *dev) 421static int __maybe_unused sysc_runtime_suspend(struct device *dev)
422{ 422{
423 struct sysc *ddata; 423 struct sysc *ddata;
424 int i; 424 int i;
@@ -437,7 +437,7 @@ static int sysc_runtime_suspend(struct device *dev)
437 return 0; 437 return 0;
438} 438}
439 439
440static int sysc_runtime_resume(struct device *dev) 440static int __maybe_unused sysc_runtime_resume(struct device *dev)
441{ 441{
442 struct sysc *ddata; 442 struct sysc *ddata;
443 int i, error; 443 int i, error;