diff options
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/video/msp3400-driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/msp3400-driver.c b/linux/drivers/media/video/msp3400-driver.c index 8ff25e4a8..f03cc0032 100644 --- a/linux/drivers/media/video/msp3400-driver.c +++ b/linux/drivers/media/video/msp3400-driver.c @@ -1027,7 +1027,7 @@ static int msp_attach(struct i2c_adapter *adapter, int address, int kind) #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0) state->kthread = kthread_run(thread_func, client, "msp34xx"); - if (state->kthread == NULL) + if (IS_ERR(state->kthread)) v4l_warn(client, "kernel_thread() failed\n"); #else DECLARE_MUTEX_LOCKED(sem); |