@@ -29,6 +29,8 @@
#include <media/v4l2-common.h>
#include <media/tuner.h>
+static int tm6000_debug;
+
#define USB_TIMEOUT 5*HZ /* ms */
int tm6000_read_write_usb(struct tm6000_core *dev, u8 req_type, u8 req,
@@ -38,9 +38,9 @@ MODULE_SUPPORTED_DEVICE("{{Trident, tm5600},"
"{{Trident, tm6000},"
"{{Trident, tm6010}");
-static int debug
+static int tm6000_debug;
-module_param(debug, int, 0644);
+module_param_named(debug, tm6000_debug, int, 0644);
MODULE_PARM_DESC(debug, "enable debug message");
static inline void print_err_status(struct tm6000_core *dev,
@@ -55,7 +55,7 @@ static unsigned int vid_limit = 16; /* Video memory limit, in Mb */
static int video_nr = -1; /* /dev/videoN, -1 for autodetect */
/* Debug level */
-int tm6000_debug;
+static int tm6000_debug;
/* supported controls */
static struct v4l2_queryctrl tm6000_qctrl[] = {
@@ -318,8 +318,6 @@ int tm6000_queue_init(struct tm6000_core *dev);
/* Debug stuff */
-extern int tm6000_debug;
-
#define dprintk(dev, level, fmt, arg...) do {\
if (tm6000_debug & level) \
printk(KERN_INFO "(%lu) %s %s :"fmt, jiffies, \