diff options
Diffstat (limited to 'drivers/video/omap2/dss/dss.c')
-rw-r--r-- | drivers/video/omap2/dss/dss.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/omap2/dss/dss.c b/drivers/video/omap2/dss/dss.c index 9b05ee65a15d..0a26b7d84d41 100644 --- a/drivers/video/omap2/dss/dss.c +++ b/drivers/video/omap2/dss/dss.c | |||
@@ -467,14 +467,14 @@ static irqreturn_t dss_irq_handler_omap3(int irq, void *arg) | |||
467 | 467 | ||
468 | static int _omap_dss_wait_reset(void) | 468 | static int _omap_dss_wait_reset(void) |
469 | { | 469 | { |
470 | unsigned timeout = 1000; | 470 | int t = 0; |
471 | 471 | ||
472 | while (REG_GET(DSS_SYSSTATUS, 0, 0) == 0) { | 472 | while (REG_GET(DSS_SYSSTATUS, 0, 0) == 0) { |
473 | udelay(1); | 473 | if (++t > 1000) { |
474 | if (!--timeout) { | ||
475 | DSSERR("soft reset failed\n"); | 474 | DSSERR("soft reset failed\n"); |
476 | return -ENODEV; | 475 | return -ENODEV; |
477 | } | 476 | } |
477 | udelay(1); | ||
478 | } | 478 | } |
479 | 479 | ||
480 | return 0; | 480 | return 0; |