clk: qcom: clk-cpu-osm: remove dummy clock usage to avoid struct corruption

Replace clk_dummy_ops usage for clk_ops_core and clk_ops_cpu_osm.
Define stub set_rate() and recalc_rate() functions for
clk_ops_cpu_osm which simply set and return a stored rate value
respectively.

This modification avoids struct clk_osm data corruption when
dummy_clk_set_rate() dereferences a struct clk_osm pointer as if
it were a struct clk_dummy pointer and then sets a member value
within it.

Change-Id: I5b0a949a3500d4cd67576ab717db22107027a9fe
Signed-off-by: David Collins <collinsd@codeaurora.org>
1 file changed