• Arnd Bergmann's avatar
    [media] hide unused functions for !MEDIA_CONTROLLER · 0a82edd0
    Arnd Bergmann authored
    Some functions in the au0828 driver are only used when CONFIG_MEDIA_CONTROLLER
    is enabled, and otherwise defined as empty functions:
    
    media/usb/au0828/au0828-core.c:208:13: error: 'au0828_media_graph_notify' defined but not used [-Werror=unused-function]
    media/usb/au0828/au0828-core.c:262:12: error: 'au0828_enable_source' defined but not used [-Werror=unused-function]
    media/usb/au0828/au0828-core.c:412:13: error: 'au0828_disable_source' defined but not used [-Werror=unused-function]
    
    This moves the #ifdef so the entire definitions are hidden in this case.
    
    [mchehab@osg.samsung.com: As pointed by Shuah Khan, a return 0 can be removed]
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
    0a82edd0
au0828-core.c 17.1 KB