diff options
Diffstat (limited to 'linux/drivers/media/video/tda9875.c')
-rw-r--r-- | linux/drivers/media/video/tda9875.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/linux/drivers/media/video/tda9875.c b/linux/drivers/media/video/tda9875.c index 499f0e0c2..d294c68a3 100644 --- a/linux/drivers/media/video/tda9875.c +++ b/linux/drivers/media/video/tda9875.c @@ -39,7 +39,6 @@ #else #include <media/audiochip.h> #endif -#include <media/v4l2-common.h> static int debug; /* insmod parameter */ module_param(debug, int, S_IRUGO | S_IWUSR); @@ -134,12 +133,12 @@ static int tda9875_write(struct i2c_client *client, int subaddr, unsigned char v static int tda9875_read(struct i2c_client *client) { unsigned char buffer; - v4l_dbg(2,client,"In tda9875_read\n"); + v4l_dbg(2, debug,client,"In tda9875_read\n"); if (1 != i2c_master_recv(client,&buffer,1)) { v4l_err(client,"I/O error, trying (read)\n"); return -1; } - v4l_dbg(1,client,"Read 0x%02x\n", buffer); + v4l_dbg(1, debug,client,"Read 0x%02x\n", buffer); return buffer; } #endif @@ -278,9 +277,9 @@ static int tda9875_attach(struct i2c_adapter *adap, int addr, #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) MOD_INC_USE_COUNT; #endif - i2c_attach_client(client); - printk(KERN_INFO "tda9875: init\n"); + + i2c_attach_client(client); return 0; } |