mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
clk: rockchip: rk3588: fix 32-bit compile warning
"warn: should 'fout_hz << s' be a 64 bit type?" Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I3b842974c2c1709878702c35963df74acd7f4d2f
This commit is contained in:
@@ -351,7 +351,7 @@ rockchip_rk3588_pll_clk_set_by_auto(struct rockchip_clk_pll *pll,
|
||||
|
||||
if (fin_hz / MHZ * MHZ == fin_hz && fout_hz / MHZ * MHZ == fout_hz) {
|
||||
for (s = 0; s <= 6; s++) {
|
||||
fvco = fout_hz << s;
|
||||
fvco = (u64)fout_hz << s;
|
||||
if (fvco < fvco_min || fvco > fvco_max)
|
||||
continue;
|
||||
for (p = 2; p <= 4; p++) {
|
||||
@@ -369,7 +369,7 @@ rockchip_rk3588_pll_clk_set_by_auto(struct rockchip_clk_pll *pll,
|
||||
pr_err("CANNOT FIND Fout by auto,fout = %lu\n", fout_hz);
|
||||
} else {
|
||||
for (s = 0; s <= 6; s++) {
|
||||
fvco = fout_hz << s;
|
||||
fvco = (u64)fout_hz << s;
|
||||
if (fvco < fvco_min || fvco > fvco_max)
|
||||
continue;
|
||||
for (p = 1; p <= 4; p++) {
|
||||
|
||||
Reference in New Issue
Block a user