commit | bab53301c3846ae9a5e1142dca2976f434f70481 | [log] [tgz] |
---|---|---|
author | Haojian Zhuang <haojian.zhuang@gmail.com> | Mon Dec 03 16:14:37 2012 +0800 |
committer | Mike Turquette <mturquette@linaro.org> | Fri Jan 11 18:43:27 2013 -0800 |
tree | 2d872a2a8fc40d6f4975ee153f8d76f227d7813a | |
parent | 4895084c87ab0973308021d755596798160b682a [diff] |
clk: fixed-factor: round_rate should use do_div clk->rate = parent->rate / div * mult The formula is OK. But it may overflow while we do operate with unsigned long. So use do_div instead. Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com> Signed-off-by: Mike Turquette <mturquette@linaro.org> [mturquette@linaro.org: improved $SUBJECT]