summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Oberritter <devnull@localhost>2004-03-13 20:34:32 +0000
committerAndreas Oberritter <devnull@localhost>2004-03-13 20:34:32 +0000
commit3db8e7c4112efb6084607b0a927ced1f38ea4963 (patch)
treed9ef8fb24f3dc8838579a2e34f9cc827b7bf3fdd
parent34efdd4ab0b8842ece57120d0f662bffc9d8bc46 (diff)
downloadmediapointer-dvb-s2-3db8e7c4112efb6084607b0a927ced1f38ea4963.tar.gz
mediapointer-dvb-s2-3db8e7c4112efb6084607b0a927ced1f38ea4963.tar.bz2
build ttpci driver without infrared support if CONFIG_INPUT_EVDEV is not set to get rid of unresolved symbols
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c
index 36cd666f4..958add7ee 100644
--- a/linux/drivers/media/dvb/ttpci/av7110.c
+++ b/linux/drivers/media/dvb/ttpci/av7110.c
@@ -30,6 +30,7 @@
*/
+#include <linux/config.h>
#include <linux/module.h>
#include <linux/kmod.h>
#include <linux/delay.h>
@@ -1657,6 +1658,7 @@ static int __init av7110_init(void)
{
int retval;
retval = saa7146_register_extension(&av7110_extension);
+#ifdef CONFIG_INPUT_EVDEV
if (retval)
goto failed_saa7146_register;
@@ -1667,13 +1669,16 @@ static int __init av7110_init(void)
failed_av7110_ir_init:
saa7146_unregister_extension(&av7110_extension);
failed_saa7146_register:
+#endif
return retval;
}
static void __exit av7110_exit(void)
{
+#ifdef CONFIG_INPUT_EVDEV
av7110_ir_exit();
+#endif
saa7146_unregister_extension(&av7110_extension);
}