aboutsummaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/omap
diff options
context:
space:
mode:
authorKarim Eshapa2017-05-02 13:47:54 +0200
committerBartlomiej Zolnierkiewicz2017-05-02 13:47:54 +0200
commit5c9cfda13dc503f4b25b486a57974e0414adb6f1 (patch)
treef39c09aeab7837a1a83ae472c9fc46df87e5fa5c /drivers/video/fbdev/omap
parentdc85e9a87420613b3129d5cc5ecd79c58351c546 (diff)
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: Karim Eshapa <karim.eshapa@gmail.com> Cc: Tomi Valkeinen <tomi.valkeinen@ti.com> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video/fbdev/omap')
-rw-r--r--drivers/video/fbdev/omap/lcd_mipid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/omap/lcd_mipid.c b/drivers/video/fbdev/omap/lcd_mipid.c
index c81f150589e1..df9e6ebcfad5 100644
--- a/drivers/video/fbdev/omap/lcd_mipid.c
+++ b/drivers/video/fbdev/omap/lcd_mipid.c
@@ -174,7 +174,7 @@ static void hw_guard_wait(struct mipid_device *md)
{
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);
schedule_timeout(wait);
}