diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2017-12-11 06:30:14 -0500 |
|---|---|---|
| committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2017-12-12 05:44:11 -0500 |
| commit | 54eed78c5c831ba696259f7fa69966d699a173b1 (patch) | |
| tree | 2a53d0069e148b0d104de1f2621d1d1682c259b4 /drivers | |
| parent | 9273083a1530891360e9fe4fad26ae96810db499 (diff) | |
usb: gadget: webcam: fix V4L2 Kconfig dependency
Configuring the USB_G_WEBCAM driver as built-in leads to a link
error when CONFIG_VIDEO_V4L2 is a loadable module:
drivers/usb/gadget/function/f_uvc.o: In function `uvc_function_setup':
f_uvc.c:(.text+0xfe): undefined reference to `v4l2_event_queue'
drivers/usb/gadget/function/f_uvc.o: In function `uvc_function_ep0_complete':
f_uvc.c:(.text+0x188): undefined reference to `v4l2_event_queue'
This changes the Kconfig dependency to disallow that configuration,
and force it to be a module in that case as well.
This is apparently a rather old bug, but very hard to trigger
even in thousands of randconfig builds.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/usb/gadget/legacy/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/legacy/Kconfig b/drivers/usb/gadget/legacy/Kconfig index 9570bbeced4f..487568f2c729 100644 --- a/drivers/usb/gadget/legacy/Kconfig +++ b/drivers/usb/gadget/legacy/Kconfig | |||
| @@ -487,7 +487,7 @@ endif | |||
| 487 | # or video class gadget drivers), or specific hardware, here. | 487 | # or video class gadget drivers), or specific hardware, here. |
| 488 | config USB_G_WEBCAM | 488 | config USB_G_WEBCAM |
| 489 | tristate "USB Webcam Gadget" | 489 | tristate "USB Webcam Gadget" |
| 490 | depends on VIDEO_DEV | 490 | depends on VIDEO_V4L2 |
| 491 | select USB_LIBCOMPOSITE | 491 | select USB_LIBCOMPOSITE |
| 492 | select VIDEOBUF2_VMALLOC | 492 | select VIDEOBUF2_VMALLOC |
| 493 | select USB_F_UVC | 493 | select USB_F_UVC |
