[Patch] Initialize saa7146 debugging modparam correctly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx>

Regards

Dominik


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)");
_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux