V4L/DVB (7591): drivers/media/video: use time_before, time_before_eq, etc
[safe/jmp/linux-2.6] / drivers / media / video / ivtv / ivtv-streams.c
index 24d98ec..4ab8d36 100644 (file)
@@ -768,7 +768,8 @@ int ivtv_stop_v4l2_encode_stream(struct ivtv_stream *s, int gop_end)
 
                        /* wait 2s for EOS interrupt */
                        while (!test_bit(IVTV_F_I_EOS, &itv->i_flags) &&
-                               jiffies < then + msecs_to_jiffies (2000)) {
+                               time_before(jiffies,
+                                           then + msecs_to_jiffies(2000))) {
                                schedule_timeout(msecs_to_jiffies(10));
                        }