bus: ti-sysc: mark PM functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Fri, 13 Oct 2017 09:25:32 +0000 (11:25 +0200)
committerTony Lindgren <tony@atomide.com>
Fri, 13 Oct 2017 17:27:17 +0000 (10:27 -0700)
commita4a5d493ebbc680121b584afcaa2c955b6281d0c
tree54cb3e7ffe402991b0f1e142ff0a873500973a0f
parent552ee3021cd79feb4203df1d594533fa9c8e1595
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>
drivers/bus/ti-sysc.c