mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
cpufreq: s5pv210-cpufreq: fix wrong do_div() usage
It is wrong to use do_div() with 32-bit dividends (unsigned long is 32 bits on 32-bit architectures). Signed-off-by: Nicolas Pitre <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Viresh Kumar <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
58ac1f6202
commit
d7e53e35f9
1 changed files with 2 additions and 2 deletions
|
|
@ -212,11 +212,11 @@ static void s5pv210_set_refresh(enum s5pv210_dmc_port ch, unsigned long freq)
|
|||
/* Find current DRAM frequency */
|
||||
tmp = s5pv210_dram_conf[ch].freq;
|
||||
|
||||
do_div(tmp, freq);
|
||||
tmp /= freq;
|
||||
|
||||
tmp1 = s5pv210_dram_conf[ch].refresh;
|
||||
|
||||
do_div(tmp1, tmp);
|
||||
tmp1 /= tmp;
|
||||
|
||||
__raw_writel(tmp1, reg);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue