diff options
Diffstat (limited to 'linux/drivers/media/video/msp3400.c')
-rw-r--r-- | linux/drivers/media/video/msp3400.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/linux/drivers/media/video/msp3400.c b/linux/drivers/media/video/msp3400.c index 702268d6a..97440f099 100644 --- a/linux/drivers/media/video/msp3400.c +++ b/linux/drivers/media/video/msp3400.c @@ -755,15 +755,16 @@ static int msp34xx_sleep(struct msp3400c *msp, int timeout) #endif } } - if (current->flags & PF_FREEZE) { #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,12) + if (current->flags & PF_FREEZE) { refrigerator (PF_FREEZE); -#else - refrigerator (); -#endif } +#endif remove_wait_queue(&msp->wq, &wait); +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,12) + try_to_freeze(); +#endif return msp->restart; } |