|
@@ -212,11 +212,11 @@ static void s5pv210_set_refresh(enum s5pv210_dmc_port ch, unsigned long freq)
|
|
/* Find current DRAM frequency */
|
|
/* Find current DRAM frequency */
|
|
tmp = s5pv210_dram_conf[ch].freq;
|
|
tmp = s5pv210_dram_conf[ch].freq;
|
|
|
|
|
|
- do_div(tmp, freq);
|
|
|
|
|
|
+ tmp /= freq;
|
|
|
|
|
|
tmp1 = s5pv210_dram_conf[ch].refresh;
|
|
tmp1 = s5pv210_dram_conf[ch].refresh;
|
|
|
|
|
|
- do_div(tmp1, tmp);
|
|
|
|
|
|
+ tmp1 /= tmp;
|
|
|
|
|
|
__raw_writel(tmp1, reg);
|
|
__raw_writel(tmp1, reg);
|
|
}
|
|
}
|