Commit c4ce42f2 authored by Gerd Knorr's avatar Gerd Knorr Committed by Linus Torvalds

[PATCH] v4l: msp3400 fix

Fix for the msp3400 module: make the initial carrier scan (after loading
the driver) work.
Signed-off-by: default avatarGerd Knorr <kraxel@bytesex.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7408e27e
...@@ -1426,6 +1426,8 @@ static int msp_command(struct i2c_client *client, unsigned int cmd, void *arg); ...@@ -1426,6 +1426,8 @@ static int msp_command(struct i2c_client *client, unsigned int cmd, void *arg);
static int msp_suspend(struct device * dev, u32 state, u32 level); static int msp_suspend(struct device * dev, u32 state, u32 level);
static int msp_resume(struct device * dev, 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 = { static struct i2c_driver driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.name = "i2c msp3400 driver", .name = "i2c msp3400 driver",
...@@ -1550,7 +1552,7 @@ static int msp_attach(struct i2c_adapter *adap, int addr, int kind) ...@@ -1550,7 +1552,7 @@ static int msp_attach(struct i2c_adapter *adap, int addr, int kind)
msp->kthread = kthread_run(thread_func, c, "msp34xx"); msp->kthread = kthread_run(thread_func, c, "msp34xx");
if (NULL == msp->kthread) if (NULL == msp->kthread)
printk(KERN_WARNING "msp34xx: kernel_thread() failed\n"); printk(KERN_WARNING "msp34xx: kernel_thread() failed\n");
wake_up_interruptible(&msp->wq); msp_wake_thread(c);
} }
/* done */ /* done */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment