Skip to contentSkip to conversation

v4l: msp3400 fix

PATCH New Gerd Knorr 1 participant 1 message Nov 8, 2004 Media (V4L/DVB)

lore
Share & tools
lore

Gerd Knorr

author
#0 lore raw

PATCH 1/1 v4l: msp3400 fix

Fix for the msp3400 module: make the initial carrier scan (after loading the driver) work.

---
 drivers/media/video/msp3400.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)
drivers/media/video/msp3400.c +3 -1
diff -u linux-2.6.10/drivers/media/video/msp3400.c linux/drivers/media/video/msp3400.c
@@ -1426,6 +1426,8 @@
 static int msp_suspend(struct device * dev, u32 state, u32 level);
 static int msp_resume(struct device * dev, u32 level);
 
+static void msp_wake_thread(struct i2c_client *client);
+
 static struct i2c_driver driver = {
 	.owner          = THIS_MODULE,
 	.name           = "i2c msp3400 driver",
@@ -1550,7 +1552,7 @@
 		msp->kthread = kthread_run(thread_func, c, "msp34xx");
 		if (NULL == msp->kthread)
 			printk(KERN_WARNING "msp34xx: kernel_thread() failed\n");
-		wake_up_interruptible(&msp->wq);
+		msp_wake_thread(c);
 	}
 
 	/* done */
Signature · 1 line
#define printk(args...) fprintf(stderr, ## args)