[media] media: mtk-mdp: mark PM functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Wed, 26 Oct 2016 09:43:43 +0000 (07:43 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 19 Nov 2016 12:20:09 +0000 (10:20 -0200)
commit33e423c40ccf6eedbb5dc6e687524f9133368601
tree77bcaaa6e266cded26bfe19e19150f67580aedf9
parentf2709c206d8a3e11729e68d80c57e7470bbe8e5e
[media] media: mtk-mdp: mark PM functions as __maybe_unused

A previous patch tried to fix a build error, but introduced another
warning:

drivers/media/platform/mtk-mdp/mtk_mdp_core.c:71:13: error: ‘mtk_mdp_clock_off’ defined but not used [-Werror=unused-function]
drivers/media/platform/mtk-mdp/mtk_mdp_core.c:62:13: error: ‘mtk_mdp_clock_on’ defined but not used [-Werror=unused-function]

This marks all the PM functions as __maybe_unused and removes
the #ifdef around them, as that will always do the right thing.

Fixes: 1b06fcf56aa6 ("[media] media: mtk-mdp: fix build error")

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/mtk-mdp/mtk_mdp_core.c