summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/msp3400-driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/msp3400-driver.c')
-rw-r--r--linux/drivers/media/video/msp3400-driver.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/linux/drivers/media/video/msp3400-driver.c b/linux/drivers/media/video/msp3400-driver.c
index 137795e03..481ecbe65 100644
--- a/linux/drivers/media/video/msp3400-driver.c
+++ b/linux/drivers/media/video/msp3400-driver.c
@@ -754,8 +754,14 @@ static int msp34xx_sleep(struct msp3400c *msp, int timeout)
#endif
}
}
- if (current->flags & PF_FREEZE)
- refrigerator(PF_FREEZE);
+ if (current->flags & PF_FREEZE) {
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,12)
+ refrigerator (PF_FREEZE);
+#else
+ refrigerator ();
+#endif
+ }
+
remove_wait_queue(&msp->wq, &wait);
return msp->restart;
}