Commit cd9fc48d authored by Enrico Scholz's avatar Enrico Scholz

onsemi: core: avoid printing undefined values in debug output

Signed-off-by: Enrico Scholz's avatarEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
parent 76868706
......@@ -3357,6 +3357,11 @@ int onsemi_calculate_pll(struct onsemi_core const *onsemi,
freq.op_sys = freq.vco / cfg.op_sys_div;
freq.op_pix = freq.op_sys / cfg.op_pix_div;
freq.clk_op = freq.op_pix / cfg.op_speed;
} else {
/* used in debug messages only */
freq.op_sys = 0;
freq.op_pix = 0;
freq.clk_op = 0;
}
dev_dbg(onsemi->dev,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment