Skip to content
Snippets Groups Projects
Commit c595a285 authored by Vignesh R's avatar Vignesh R Committed by Jagan Teki
Browse files

spi: ti_qspi: Fix compiler warning when DEBUG macro is set


clk_div is uninitialized at the beginning of ti_spi_set_speed(), move
debug() print after clk_div calculation to avoid compiler warning and to
have proper value of clk_div printed during debugging.

Signed-off-by: default avatarVignesh R <vigneshr@ti.com>
Reviewed-by: default avatarJagan Teki <jteki@openedev.com>
Reviewed-by: default avatarMugunthan V N <mugunthanvnm@ti.com>
parent 69eeefaa
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