clk: composite: pass mux_hw into determine_rate
authorMike Turquette <mturquette@linaro.org>
Tue, 14 Jan 2014 20:56:01 +0000 (12:56 -0800)
committer黄涛 <huangtao@rock-chips.com>
Fri, 17 Jan 2014 06:26:45 +0000 (14:26 +0800)
commit342b0a63bd7650cadd142ec81c73fc52599f9b2e
tree397aa1a4e378f9bf2b8950dab294cc3d0eab2ca5
parente8b3fb940b00236dacb08607863c4326fd8f9dac
clk: composite: pass mux_hw into determine_rate

The composite clock's .determine_rate implementation can call the
underyling .determine_rate callback corresponding to rate_hw or the
underlying .determine_rate callback corresponding to mux_hw. In both
cases we pass in rate_hw, which is wrong. Fixed by passing mux_hw into
the correct callback.

Reported-by: Lemon Dai <dailemon.gl@gmail.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk-composite.c