X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fmedia%2Fdvb%2Fttpci%2Fav7110_ir.c;h=eaf3cb2c9b0a796f1d02095bfa6b7d4ad15ea223;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=22039beb41d16204390515449d08635e0ce0fdd2;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/media/dvb/ttpci/av7110_ir.c b/drivers/media/dvb/ttpci/av7110_ir.c index 22039beb4..eaf3cb2c9 100644 --- a/drivers/media/dvb/ttpci/av7110_ir.c +++ b/drivers/media/dvb/ttpci/av7110_ir.c @@ -1,23 +1,16 @@ #include #include #include +#include #include #include #include #include "av7110.h" -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) -#include "input_fake.h" -#endif - - #define UP_TIMEOUT (HZ/4) -static int av7110_ir_debug = 0; - -#define dprintk(x...) do { if (av7110_ir_debug) printk (x); } while (0) - +/* enable ir debugging by or'ing av7110_debug with 16 */ static struct input_dev input_dev; @@ -80,7 +73,7 @@ static void av7110_emit_key (u32 ircom) keycode = key_map[data]; - dprintk ("#########%08x######### addr %i data 0x%02x (keycode %i)\n", + dprintk(16, "#########%08x######### addr %i data 0x%02x (keycode %i)\n", ircom, addr, data, keycode); /* check device address (if selected) */ @@ -205,6 +198,7 @@ int __init av7110_ir_init (void) void __exit av7110_ir_exit (void) { + del_timer_sync(&keyup_timer); remove_proc_entry ("av7110_ir", NULL); av7110_unregister_irc_handler (av7110_emit_key); input_unregister_device(&input_dev); @@ -213,6 +207,3 @@ void __exit av7110_ir_exit (void) //MODULE_AUTHOR("Holger Waechtler "); //MODULE_LICENSE("GPL"); -MODULE_PARM(av7110_ir_debug,"i"); -MODULE_PARM_DESC(av7110_ir_debug, "enable AV7110 IR receiver debug messages"); -