clk: composite: .determine_rate support
authorEmilio López <emilio@elopez.com.ar>
Sun, 15 Sep 2013 00:37:59 +0000 (21:37 -0300)
committer黄涛 <huangtao@rock-chips.com>
Fri, 17 Jan 2014 06:25:20 +0000 (14:25 +0800)
commite8b3fb940b00236dacb08607863c4326fd8f9dac
tree76be8cf35fdbe76c595ec64c015e458a972915ba
parent0c092fe69021c5fc7c9f84e5540d888797a3a023
clk: composite: .determine_rate support

This commit adds .determine_rate support to the composite clock. It will
use the .determine_rate callback from the rate component if available,
and fall back on the mux component otherwise. This allows composite
clocks to enjoy the benefits of automatic clock reparenting.

Signed-off-by: Emilio López <emilio@elopez.com.ar>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/clk-composite.c