[media] hide unused functions for !MEDIA_CONTROLLER
authorArnd Bergmann <arnd@arndb.de>
Sat, 5 Mar 2016 00:06:43 +0000 (21:06 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sat, 5 Mar 2016 12:07:14 +0000 (09:07 -0300)
commit0a82edd011f5cd3de1eded8fe1d78cef370b2083
tree9b79502209ae67d20d78f9d60370260d34b1fb9e
parent0899f62ff93f73860a23a4d4ac6921e3786b41d1
[media] hide unused functions for !MEDIA_CONTROLLER

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: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/au0828/au0828-core.c
This page took 0.024617 seconds and 5 git commands to generate.