diff options
author | Mike Turquette <mturquette@linaro.org> | 2013-04-11 22:31:37 +0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2013-04-12 22:23:24 +0400 |
commit | f363e215931ecc8077b6f6ee6d39d9ffaf1c3bd0 (patch) | |
tree | 737e5e9ccd32fc757d7435af3e0b0ba0b9cda7bf /drivers/cpufreq/s3c2416-cpufreq.c | |
parent | d3a1c7be8361e2fbb6affbdb19de47ca48d6c402 (diff) | |
download | linux-f363e215931ecc8077b6f6ee6d39d9ffaf1c3bd0.tar.xz |
clk: composite: allow fixed rates & fixed dividers
The composite clock assumes that any clock implementing the .recalc_rate
callback will also implement .round_rate and .set_rate. This is not
always true; the basic fixed-rate clock will only implement .recalc_rate
and a fixed-divider clock may choose to implement .recalc_rate and
.round_rate but not .set_rate.
Fix this by conditionally registering .round_rate and .set_rate
callbacks based on the rate_ops passed in to clk_composite_register.
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Cc: Prashant Gaikwad <pgaikwad@nvidia.com>
Tested-by: Emilio López <emilio@elopez.com.ar>
Cc: Gregory CLEMENT <gregory.clement@free-electrons.com>
Diffstat (limited to 'drivers/cpufreq/s3c2416-cpufreq.c')
0 files changed, 0 insertions, 0 deletions