MLK-21828-3 clk-imx8: fix get clk rate issue
authorYe Li <ye.li@nxp.com>
Fri, 8 Mar 2019 09:29:56 +0000 (01:29 -0800)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 08:51:15 +0000 (01:51 -0700)
commit3fb0090f867dcea41419bcdb7ac60e0bdf5c32b1
treeba04733f1d1e290ef82b41d6c21a86c37a993bfe
parent30b9f6f88e4e310a03458eecee5f594ebd218564
MLK-21828-3 clk-imx8: fix get clk rate issue

The SCFW get clock rate API only return u32, but we use a ulong to
get the value. The ulong variable is not initialized, so on stack
it higher 32 bits may not zero, and return invalid rate.

Signed-off-by: Ye Li <ye.li@nxp.com>
drivers/clk/imx/clk-imx8.c