diff options
Diffstat (limited to 'drivers/clk/qcom/clk-rcg.c')
-rw-r--r-- | drivers/clk/qcom/clk-rcg.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/clk/qcom/clk-rcg.c b/drivers/clk/qcom/clk-rcg.c index 0b93972c8807..0039bd7d3965 100644 --- a/drivers/clk/qcom/clk-rcg.c +++ b/drivers/clk/qcom/clk-rcg.c | |||
@@ -368,6 +368,7 @@ clk_dyn_rcg_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) | |||
368 | 368 | ||
369 | static long _freq_tbl_determine_rate(struct clk_hw *hw, | 369 | static long _freq_tbl_determine_rate(struct clk_hw *hw, |
370 | const struct freq_tbl *f, unsigned long rate, | 370 | const struct freq_tbl *f, unsigned long rate, |
371 | unsigned long min_rate, unsigned long max_rate, | ||
371 | unsigned long *p_rate, struct clk_hw **p_hw) | 372 | unsigned long *p_rate, struct clk_hw **p_hw) |
372 | { | 373 | { |
373 | unsigned long clk_flags; | 374 | unsigned long clk_flags; |
@@ -397,22 +398,27 @@ static long _freq_tbl_determine_rate(struct clk_hw *hw, | |||
397 | } | 398 | } |
398 | 399 | ||
399 | static long clk_rcg_determine_rate(struct clk_hw *hw, unsigned long rate, | 400 | static long clk_rcg_determine_rate(struct clk_hw *hw, unsigned long rate, |
401 | unsigned long min_rate, unsigned long max_rate, | ||
400 | unsigned long *p_rate, struct clk_hw **p) | 402 | unsigned long *p_rate, struct clk_hw **p) |
401 | { | 403 | { |
402 | struct clk_rcg *rcg = to_clk_rcg(hw); | 404 | struct clk_rcg *rcg = to_clk_rcg(hw); |
403 | 405 | ||
404 | return _freq_tbl_determine_rate(hw, rcg->freq_tbl, rate, p_rate, p); | 406 | return _freq_tbl_determine_rate(hw, rcg->freq_tbl, rate, min_rate, |
407 | max_rate, p_rate, p); | ||
405 | } | 408 | } |
406 | 409 | ||
407 | static long clk_dyn_rcg_determine_rate(struct clk_hw *hw, unsigned long rate, | 410 | static long clk_dyn_rcg_determine_rate(struct clk_hw *hw, unsigned long rate, |
411 | unsigned long min_rate, unsigned long max_rate, | ||
408 | unsigned long *p_rate, struct clk_hw **p) | 412 | unsigned long *p_rate, struct clk_hw **p) |
409 | { | 413 | { |
410 | struct clk_dyn_rcg *rcg = to_clk_dyn_rcg(hw); | 414 | struct clk_dyn_rcg *rcg = to_clk_dyn_rcg(hw); |
411 | 415 | ||
412 | return _freq_tbl_determine_rate(hw, rcg->freq_tbl, rate, p_rate, p); | 416 | return _freq_tbl_determine_rate(hw, rcg->freq_tbl, rate, min_rate, |
417 | max_rate, p_rate, p); | ||
413 | } | 418 | } |
414 | 419 | ||
415 | static long clk_rcg_bypass_determine_rate(struct clk_hw *hw, unsigned long rate, | 420 | static long clk_rcg_bypass_determine_rate(struct clk_hw *hw, unsigned long rate, |
421 | unsigned long min_rate, unsigned long max_rate, | ||
416 | unsigned long *p_rate, struct clk_hw **p_hw) | 422 | unsigned long *p_rate, struct clk_hw **p_hw) |
417 | { | 423 | { |
418 | struct clk_rcg *rcg = to_clk_rcg(hw); | 424 | struct clk_rcg *rcg = to_clk_rcg(hw); |