[media] media-device: fix builds when USB or PCI is compiled as module
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 5 May 2016 11:01:34 +0000 (08:01 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 5 May 2016 11:01:34 +0000 (08:01 -0300)
commitb34ecd5aa34800aefa9e2990a805243ec9348437
tree9e2b2c2cece07d535714a36927370cf4cc6c4db6
parent9b15dfe0542fd6f7455c6aeca1cf711192343bf9
[media] media-device: fix builds when USB or PCI is compiled as module

Just checking ifdef CONFIG_USB is not enough, if the USB is compiled
as module. The same applies to PCI.

Tested with the following .config alternatives:

CONFIG_USB=m
CONFIG_MEDIA_CONTROLLER=y
CONFIG_MEDIA_SUPPORT=m
CONFIG_VIDEO_AU0828=m

CONFIG_USB=m
CONFIG_MEDIA_CONTROLLER=y
CONFIG_MEDIA_SUPPORT=y
CONFIG_VIDEO_AU0828=m

CONFIG_USB=y
CONFIG_MEDIA_CONTROLLER=y
CONFIG_MEDIA_SUPPORT=y
CONFIG_VIDEO_AU0828=m

CONFIG_USB=y
CONFIG_MEDIA_CONTROLLER=y
CONFIG_MEDIA_SUPPORT=y
CONFIG_VIDEO_AU0828=y

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/media-device.c