clk: cache parent clocks only for muxes
commit9ca1c5a4bf4105d6f2f2a46892495953dd3e2fec
authorRajendra Nayak <rnayak@ti.com>
Wed, 6 Jun 2012 09:11:30 +0000 (6 14:41 +0530)
committerMike Turquette <mturquette@linaro.org>
Wed, 11 Jul 2012 22:36:45 +0000 (11 15:36 -0700)
tree8aae4e19948d34c24935ffc429a58a95e5e85379
parentf05259a6ffa40097b5565f25c3fcf833a9d3ecf5
clk: cache parent clocks only for muxes

caching parent clocks makes sense only when a clock has more
than one parent (mux clocks).
Avoid doing this for every other clock.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
[mturquette@linaro.org: removed extra parentheses]
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk.c