projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b621559
)
[media] af9035: make remote controller optional
author
Antti Palosaari
<crope@iki.fi>
Sun, 9 Dec 2012 23:18:31 +0000
(20:18 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Sun, 6 Jan 2013 12:17:18 +0000
(10:17 -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/af9035.c
patch
|
blob
|
history
diff --git
a/drivers/media/usb/dvb-usb-v2/af9035.c
b/drivers/media/usb/dvb-usb-v2/af9035.c
index
ea37b5c
..
19b1394
100644
(file)
--- a/
drivers/media/usb/dvb-usb-v2/af9035.c
+++ b/
drivers/media/usb/dvb-usb-v2/af9035.c
@@
-1146,6
+1146,7
@@
err:
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;
@@
-1220,6
+1221,9
@@
err:
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) */