commit | 5585f7317573873f95c1bb7748322c62a6c3a919 | [log] [tgz] |
---|---|---|
author | Dinh Nguyen <dinguyen@altera.com> | Wed Feb 19 15:11:10 2014 -0600 |
committer | Mike Turquette <mturquette@linaro.org> | Wed Feb 26 12:23:29 2014 -0800 |
tree | 91c8230f367233a21a4cdb61c72bbb94a5e27e5a | |
parent | 2c97ec58420d852f3f0ede905b92fbab1df5961c [diff] |
clk: socfpga: Fix integer overflow in clock calculation Use 64-bit integer for calculating clock rate. Also use do_div for the 64-bit division. Signed-off-by: Graham Moore <grmoore@altera.com> Signed-off-by: Dinh Nguyen <dinguyen@altera.com> Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Mike Turquette <mturquette@linaro.org>