summaryrefslogtreecommitdiff
path: root/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-11-29 00:05:35 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-01-06 10:15:07 -0200
commit0c87c66aa383b045c437e7cf456eef28a8aa7b66 (patch)
tree03be03c9d8d730e2ec3bc81c8cbc00fe0fc0aea8 /drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
parent24b9f50170f55a3179c6f6d51022eb7d50502d05 (diff)
[media] dvb_usb_v2: make remote controller optional
Make it possible to compile dvb_usb_v2 driver without the remote controller (RC-core). Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/dvb-usb-v2/dvb_usb_core.c')
-rw-r--r--drivers/media/usb/dvb-usb-v2/dvb_usb_core.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c b/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
index 671b4fa232b4..94f134c4e942 100644
--- a/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
+++ b/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
@@ -102,6 +102,7 @@ static int dvb_usbv2_i2c_exit(struct dvb_usb_device *d)
return 0;
}
+#if defined(CONFIG_RC_CORE) || defined(CONFIG_RC_CORE_MODULE)
static void dvb_usb_read_remote_control(struct work_struct *work)
{
struct dvb_usb_device *d = container_of(work,
@@ -202,6 +203,17 @@ static int dvb_usbv2_remote_exit(struct dvb_usb_device *d)
return 0;
}
+#else
+static int dvb_usbv2_remote_init(struct dvb_usb_device *d)
+{
+ return 0;
+}
+
+static int dvb_usbv2_remote_exit(struct dvb_usb_device *d)
+{
+ return 0;
+}
+#endif
static void dvb_usb_data_complete(struct usb_data_stream *stream, u8 *buf,
size_t len)