[media] rtl28xxu: make remote controller optional
authorAntti Palosaari <crope@iki.fi>
Sun, 9 Dec 2012 23:06:00 +0000 (20:06 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 6 Jan 2013 12:15:30 +0000 (10:15 -0200)
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>
drivers/media/usb/dvb-usb-v2/rtl28xxu.c

index eddda69..9a68903 100644 (file)
@@ -1125,7 +1125,7 @@ err:
        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;
@@ -1208,7 +1208,11 @@ static int rtl2831u_get_rc_config(struct dvb_usb_device *d,
 
        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;
@@ -1280,6 +1284,9 @@ static int rtl2832u_get_rc_config(struct dvb_usb_device *d,
 
        return 0;
 }
+#else
+       #define rtl2832u_get_rc_config NULL
+#endif
 
 static const struct dvb_usb_device_properties rtl2831u_props = {
        .driver_name = KBUILD_MODNAME,