dmaengine: cppi41: mark PM functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Tue, 6 Sep 2016 13:20:05 +0000 (15:20 +0200)
committerVinod Koul <vinod.koul@intel.com>
Wed, 7 Sep 2016 08:08:57 +0000 (13:38 +0530)
commit522ef6144fe46ec2a74fa8778a73f2bd2cf0f9bb
treeafe80326bcf17a256c382b5fd54948fa246bec35
parentfdea2d09b997ba4c86e7a707a5fac87c305f2131
dmaengine: cppi41: mark PM functions as __maybe_unused

When CONFIG_PM_SLEEP is disabled, we get a build error in
the cppi41 dmaengine driver, since the runtime-pm functions
are hidden within the wrong #ifdef:

drivers/dma/cppi41.c:1158:21: error: 'cppi41_runtime_suspend' undeclared here (not in a function)

This removes the #ifdef and instead uses __maybe_unused
annotations that cannot have this problem.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: fdea2d09b997 ("dmaengine: cppi41: Add basic PM runtime support")
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/cppi41.c