Commit ff625984 authored by Dave Jones's avatar Dave Jones

[PATCH] Jiffies wrap fix for w9966 driver

parent 0d8bc4d7
......@@ -568,7 +568,7 @@ static inline int w9966_i2c_setscl(struct w9966_dev* cam, int state)
if (state) {
timeout = jiffies + 100;
while (!w9966_i2c_getscl(cam)) {
if (jiffies > timeout)
if (time_after(jiffies, timeout))
return -1;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment