]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit6784cf68fab7ce7291a8c2507dbe62ba1489834a
tree77bcaaa6e266cded26bfe19e19150f67580aedf9
parent0d1ab8f906b3e485c3bd6d1af2d88b946ac9837c
[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: df4f7cd68053 ("[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