[linux-dvb] [Patch] Initialize saa7146 debugging modparam correctly

Dominik Strasser dominik at die-strassers.de
Mon Dec 25 16:22:32 CET 2006


Hi all,
saa_7146_debug is a global non-static variable - so it has to be 
initialized - otherwise it's value is undefined (and led to gazillions 
of debug messages in my case).

Signed-off-by: Dominik Strasser <dominik at die-strassers.de>

Regards

Dominik


-------------- next part --------------
diff -r d271c9d20d45 linux/drivers/media/common/saa7146_core.c
--- a/linux/drivers/media/common/saa7146_core.c	Thu Dec 21 17:07:08 2006 -0200
+++ b/linux/drivers/media/common/saa7146_core.c	Mon Dec 25 16:07:00 2006 +0100
@@ -25,7 +25,7 @@ DEFINE_MUTEX(saa7146_devices_lock);
 
 static int saa7146_num;
 
-unsigned int saa7146_debug;
+unsigned int saa7146_debug = 0;
 
 module_param(saa7146_debug, int, 0644);
 MODULE_PARM_DESC(saa7146_debug, "debug level (default: 0)");


More information about the linux-dvb mailing list