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>
return ret;
}
-
+#if defined(CONFIG_RC_CORE) || defined(CONFIG_RC_CORE_MODULE)
static int rtl2831u_rc_query(struct dvb_usb_device *d)
{
int ret, i;
return 0;
}
+#else
+ #define rtl2831u_get_rc_config NULL
+#endif
+#if defined(CONFIG_RC_CORE) || defined(CONFIG_RC_CORE_MODULE)
static int rtl2832u_rc_query(struct dvb_usb_device *d)
{
int ret, i;
return 0;
}
+#else
+ #define rtl2832u_get_rc_config NULL
+#endif
static const struct dvb_usb_device_properties rtl2831u_props = {
.driver_name = KBUILD_MODNAME,