[media] af9015: 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>
This commit is contained in:
Antti Palosaari 2012-12-09 20:15:47 -03:00 committed by Mauro Carvalho Chehab
parent d5c6209068
commit b6215596b5

View File

@ -1156,6 +1156,7 @@ error:
return ret;
}
#if defined(CONFIG_RC_CORE) || defined(CONFIG_RC_CORE_MODULE)
struct af9015_rc_setup {
unsigned int id;
char *rc_codes;
@ -1312,6 +1313,9 @@ static int af9015_get_rc_config(struct dvb_usb_device *d, struct dvb_usb_rc *rc)
return 0;
}
#else
#define af9015_get_rc_config NULL
#endif
/* interface 0 is used by DVB-T receiver and
interface 1 is for remote controller (HID) */