aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc
diff options
context:
space:
mode:
authorMike Turquette <mturquette@linaro.org>2013-04-11 14:31:37 -0400
committerMike Turquette <mturquette@linaro.org>2013-04-12 14:23:24 -0400
commitf363e215931ecc8077b6f6ee6d39d9ffaf1c3bd0 (patch)
tree737e5e9ccd32fc757d7435af3e0b0ba0b9cda7bf /net/nfc
parentd3a1c7be8361e2fbb6affbdb19de47ca48d6c402 (diff)
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 'net/nfc')
0 files changed, 0 insertions, 0 deletions