From: Mike Turquette Date: Thu, 11 Apr 2013 18:31:37 +0000 (-0700) Subject: clk: composite: allow fixed rates & fixed dividers X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~129^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f363e215931ecc8077b6f6ee6d39d9ffaf1c3bd0;p=pandora-kernel.git 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 Cc: Prashant Gaikwad Tested-by: Emilio López Cc: Gregory CLEMENT --- Reading git-diff-tree failed