Skip to content

Commit

Permalink
[media] rtl28xxu: make remote controller optional
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Jan 6, 2013
1 parent 0c87c66 commit cedda37
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion drivers/media/usb/dvb-usb-v2/rtl28xxu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ static int rtl2832u_power_ctrl(struct dvb_usb_device *d, int onoff)
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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit cedda37

Please sign in to comment.