Skip to content
Commit 5585f731 authored by Dinh Nguyen's avatar Dinh Nguyen Committed by Mike Turquette
Browse files

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: default avatarGraham Moore <grmoore@altera.com>
Signed-off-by: default avatarDinh Nguyen <dinguyen@altera.com>
Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
parent 2c97ec58
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment