upstream: [media] Fix build errors on usbtv when driver is builtin
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 24 Aug 2013 08:54:56 +0000 (05:54 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:51:46 +0000 (11:51 +0900)
commitb19a500034d4514fbc263cfb8631800214e2a0b6
treeed2ff0e4423b4dc326594a88026b82bed035aa51
parentf248845a603bdce9c2c64108a5654cab33cad5c1
upstream: [media] Fix build errors on usbtv when driver is builtin

As reported by Fengguang Wu <fengguang.wu@intel.com>

   drivers/built-in.o: In function `vb2_ioctl_streamon':
>> (.text+0x8d354): undefined reference to `video_devdata'
   drivers/built-in.o: In function `vb2_ioctl_streamoff':
>> (.text+0x8d397): undefined reference to `video_devdata'
   drivers/built-in.o: In function `vb2_ioctl_expbuf':
...

That happens when:
CONFIG_VIDEO_DEV=y
CONFIG_VIDEO_V4L2=m
CONFIG_VIDEO_USBTV=y

As the core is module, usbtv should also be compiled as module.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/usbtv/Kconfig