mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
drivers/video/omap/hwa742.c: div reaches max_clk_div
With for(div = 0; div < max_clk_div; div++) { ... } div reaches max_clk_div.
Signed-off-by: Roel Kluin <[email protected]>
Cc: Joe Perches <[email protected]>
Acked-by: Trilok Soni <[email protected]>
Cc: Russell King <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
afbb9d8d52
commit
ba78289343
1 changed files with 2 additions and 2 deletions
|
|
@ -742,7 +742,7 @@ static int calc_extif_timings(unsigned long sysclk, int *extif_mem_div)
|
|||
if (calc_reg_timing(sysclk, div) == 0)
|
||||
break;
|
||||
}
|
||||
if (div > max_clk_div)
|
||||
if (div >= max_clk_div)
|
||||
goto err;
|
||||
|
||||
*extif_mem_div = div;
|
||||
|
|
@ -752,7 +752,7 @@ static int calc_extif_timings(unsigned long sysclk, int *extif_mem_div)
|
|||
break;
|
||||
}
|
||||
|
||||
if (div > max_clk_div)
|
||||
if (div >= max_clk_div)
|
||||
goto err;
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue