commit | 14b042e480fb8cbf9a5b6fee6e29eed7e36e11f1 | [log] [tgz] |
---|---|---|
author | Fabien Parent <fparent@baylibre.com> | Wed Oct 16 20:34:30 2019 +0200 |
committer | Fabien Parent <fparent@baylibre.com> | Thu Oct 17 12:17:40 2019 +0200 |
tree | 537112a4d3fa04533e1e4de5c82cdb90d3be96cf | |
parent | 2ed7cb186c71427fe9a2cdff94625dfcc3a1d043 [diff] |
clk: mediatek: use unsigned type for returning the clk rate When the clock rate needs 32 bits to store its data, the value become corrupted because of the conversion ulong -> int -> ulong that happens in the driver. Use ulong everywhere to avoid corrupting the clock rates. Signed-off-by: Fabien Parent <fparent@baylibre.com>