diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-09-12 17:34:57 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-09-19 21:25:54 +0200 |
commit | d1463e52003033cf936182b02ae60d9c066000de (patch) | |
tree | bfef61ff2a386125631a29c9d0b80449cf5c1af2 /drivers/media/pci/saa7134 | |
parent | [media] atmel-isc: mark PM functions as __maybe_unused (diff) | |
download | linux-d1463e52003033cf936182b02ae60d9c066000de.tar.xz linux-d1463e52003033cf936182b02ae60d9c066000de.zip |
[media] usb: gadget: uvc: add V4L2 dependency
Building the UVC gadget into the kernel fails to build when
CONFIG_VIDEO_V4L2 is a loadable module:
drivers/usb/gadget/function/usb_f_uvc.o: In function `uvc_function_ep0_complete':
uvc_configfs.c:(.text.uvc_function_ep0_complete+0x84): undefined reference to `v4l2_event_queue'
drivers/usb/gadget/function/usb_f_uvc.o: In function `uvc_function_disable':
uvc_configfs.c:(.text.uvc_function_disable+0x34): undefined reference to `v4l2_event_queue'
Adding a dependency in USB_CONFIGFS_F_UVC (which is a bool symbol)
make the 'select USB_F_UVC' statement turn the USB_F_UVC into 'm'
whenever CONFIG_VIDEO_V4L2=m too, avoiding the link failure.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/pci/saa7134')
0 files changed, 0 insertions, 0 deletions