aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/c-qcam.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/c-qcam.c')
-rw-r--r--drivers/media/video/c-qcam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/c-qcam.c b/drivers/media/video/c-qcam.c
index 925ff17efbbc..f76c6a6c3766 100644
--- a/drivers/media/video/c-qcam.c
+++ b/drivers/media/video/c-qcam.c
@@ -95,7 +95,7 @@ static unsigned int qcam_await_ready1(struct qcam_device *qcam,
95 unsigned long oldjiffies = jiffies; 95 unsigned long oldjiffies = jiffies;
96 unsigned int i; 96 unsigned int i;
97 97
98 for (oldjiffies = jiffies; (jiffies - oldjiffies) < (HZ/25); ) 98 for (oldjiffies = jiffies; (jiffies - oldjiffies) < msecs_to_jiffies(40); )
99 if (qcam_ready1(qcam) == value) 99 if (qcam_ready1(qcam) == value)
100 return 0; 100 return 0;
101 101
@@ -120,7 +120,7 @@ static unsigned int qcam_await_ready2(struct qcam_device *qcam, int value)
120 unsigned long oldjiffies = jiffies; 120 unsigned long oldjiffies = jiffies;
121 unsigned int i; 121 unsigned int i;
122 122
123 for (oldjiffies = jiffies; (jiffies - oldjiffies) < (HZ/25); ) 123 for (oldjiffies = jiffies; (jiffies - oldjiffies) < msecs_to_jiffies(40); )
124 if (qcam_ready2(qcam) == value) 124 if (qcam_ready2(qcam) == value)
125 return 0; 125 return 0;
126 126