Skip to content

Commit

Permalink
[media] af9035: 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 b621559 commit eed5670
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/media/usb/dvb-usb-v2/af9035.c
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,7 @@ static int af9035_init(struct dvb_usb_device *d)
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;
Expand Down Expand Up @@ -1220,6 +1221,9 @@ static int af9035_get_rc_config(struct dvb_usb_device *d, struct dvb_usb_rc *rc)

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) */
Expand Down

0 comments on commit eed5670

Please sign in to comment.