summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-12-10 03:18:31 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-01-06 16:17:18 +0400
commiteed5670a31c511e196fd50fc591689ffdab61f80 (patch)
tree88e195f2846dde4f7061278ca0592c85c92a5490
parentb6215596b5912c205ed48c11deb1cbdf0aa3ac25 (diff)
downloadlinux-eed5670a31c511e196fd50fc591689ffdab61f80.tar.xz
[media] af9035: make remote controller optional
Do not compile remote controller when RC-core is disabled by Kconfig. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/usb/dvb-usb-v2/af9035.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c b/drivers/media/usb/dvb-usb-v2/af9035.c
index ea37b5c3c33f..19b139494448 100644
--- a/drivers/media/usb/dvb-usb-v2/af9035.c
+++ b/drivers/media/usb/dvb-usb-v2/af9035.c
@@ -1146,6 +1146,7 @@ err:
return ret;
}
+#if defined(CONFIG_RC_CORE) || defined(CONFIG_RC_CORE_MODULE)
static int af9035_rc_query(struct dvb_usb_device *d)
{
unsigned int key;
@@ -1220,6 +1221,9 @@ err:
return ret;
}
+#else
+ #define af9035_get_rc_config NULL
+#endif
/* interface 0 is used by DVB-T receiver and
interface 1 is for remote controller (HID) */