]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit36c9e81aab1bccefb282684468ec6f623641a5bd
tree9e2b2c2cece07d535714a36927370cf4cc6c4db6
parent3dfef18c56ef2898c9bc03f6d6c5912478977f28
[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