upstream: [media] e4000: make VIDEO_V4L2 dependency optional
authorAntti Palosaari <crope@iki.fi>
Sun, 16 Mar 2014 21:13:05 +0000 (18:13 -0300)
committerChanho Park <chanho61.park@samsung.com>
Thu, 7 Aug 2014 05:26:40 +0000 (14:26 +0900)
commitb3c61a2312bf918389f4a7ead8df23e60469f53c
treec9b81d4376385a2e36b8cd7e9e3ccf5f9d1ecf15
parent7af9fd83c3d5bf87ab79b46d0b76a019103d3878
upstream: [media] e4000: make VIDEO_V4L2 dependency optional

That tuner driver is mainly for DVB API, but there is some V4L2 API
controls for SDR usage. Make driver compile conditional so that V4L2
is not mandatory. Without the V4L2 support driver is build as a DVB
only, without SDR controls.

Fixes following errors reported by kbuild test robot:
ERROR: "v4l2_ctrl_auto_cluster" [drivers/media/tuners/e4000.ko] undefined!
ERROR: "v4l2_ctrl_new_std" [drivers/media/tuners/e4000.ko] undefined!
ERROR: "v4l2_ctrl_handler_init_class" [drivers/media/tuners/e4000.ko] undefined!
ERROR: "v4l2_ctrl_handler_free" [drivers/media/tuners/e4000.ko] undefined!

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/tuners/Kconfig
drivers/media/tuners/e4000.c