• Mauro Carvalho Chehab's avatar
    [media] media-device: fix builds when USB or PCI is compiled as module · b34ecd5a
    Mauro Carvalho Chehab authored
    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: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
    b34ecd5a
media-device.c 22.5 KB