]> git.baikalelectronics.ru Git - kernel.git/commit
[media] vsp1: use __maybe_unused for PM handlers
authorArnd Bergmann <arnd@arndb.de>
Thu, 30 Jun 2016 12:23:02 +0000 (09:23 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 13 Jul 2016 16:46:12 +0000 (13:46 -0300)
commit71e1c60393b483e9f1a3070150f822f73b7c1140
treedbd744d8b1d834c31cbae1de19ab2e08ef07c5b0
parent8a80bb51c9c762be18ecc83d990f5043b8680a39
[media] vsp1: use __maybe_unused for PM handlers

Building without CONFIG_PM results in a harmless warning from
slightly incorrect #ifdef guards:

drivers/media/platform/vsp1/vsp1_drv.c:525:12: error: 'vsp1_pm_runtime_resume' defined but not used [-Werror=unused-function]
drivers/media/platform/vsp1/vsp1_drv.c:516:12: error: 'vsp1_pm_runtime_suspend' defined but not used [-Werror=unused-function]

This removes the existing #ifdef and instead marks all four
PM functions as __maybe_unused.

Fixes: a09c905cb430 ("[media] v4l: vsp1: Implement runtime PM support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/vsp1/vsp1_drv.c