diff options
Diffstat (limited to 'linux/drivers/media/video/msp3400-driver.c')
-rw-r--r-- | linux/drivers/media/video/msp3400-driver.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/video/msp3400-driver.c b/linux/drivers/media/video/msp3400-driver.c index 4eabc2ef8..ff49d022f 100644 --- a/linux/drivers/media/video/msp3400-driver.c +++ b/linux/drivers/media/video/msp3400-driver.c @@ -2456,9 +2456,11 @@ static int msp_detach(struct i2c_client *client) /* shutdown control thread */ if (msp->kthread) { - msp->restart = 1; #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) DECLARE_MUTEX_LOCKED(sem); +#endif + msp->restart = 1; +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) /* shutdown control thread */ msp->notify = &sem; msp->rmmod = 1; |