Commit 5c9cfda1 authored by Karim Eshapa's avatar Karim Eshapa Committed by Bartlomiej Zolnierkiewicz

drivers/video/fbdev/omap/lcd_mipid.c: Use time comparison kernel macros

Use time_before_eq time comparison defind kernel macro
that has safety check.
Signed-off-by: default avatarKarim Eshapa <karim.eshapa@gmail.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
parent dc85e9a8
...@@ -174,7 +174,7 @@ static void hw_guard_wait(struct mipid_device *md) ...@@ -174,7 +174,7 @@ static void hw_guard_wait(struct mipid_device *md)
{ {
unsigned long wait = md->hw_guard_end - jiffies; unsigned long wait = md->hw_guard_end - jiffies;
if ((long)wait > 0 && wait <= md->hw_guard_wait) { if ((long)wait > 0 && time_before_eq(wait, md->hw_guard_wait)) {
set_current_state(TASK_UNINTERRUPTIBLE); set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout(wait); schedule_timeout(wait);
} }
......
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