• Arnd Bergmann's avatar
    [media] vsp1: use __maybe_unused for PM handlers · af2e14bb
    Arnd Bergmann authored
    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: 1e6af546 ("[media] v4l: vsp1: Implement runtime PM support")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
    af2e14bb
vsp1_drv.c 17.6 KB