diff options
Diffstat (limited to 'drivers/clk/versatile/clk-vexpress-osc.c')
-rw-r--r-- | drivers/clk/versatile/clk-vexpress-osc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/clk/versatile/clk-vexpress-osc.c b/drivers/clk/versatile/clk-vexpress-osc.c index e7a868b83fe5..dd08ecb498be 100644 --- a/drivers/clk/versatile/clk-vexpress-osc.c +++ b/drivers/clk/versatile/clk-vexpress-osc.c | |||
@@ -44,10 +44,10 @@ static long vexpress_osc_round_rate(struct clk_hw *hw, unsigned long rate, | |||
44 | { | 44 | { |
45 | struct vexpress_osc *osc = to_vexpress_osc(hw); | 45 | struct vexpress_osc *osc = to_vexpress_osc(hw); |
46 | 46 | ||
47 | if (WARN_ON(osc->rate_min && rate < osc->rate_min)) | 47 | if (osc->rate_min && rate < osc->rate_min) |
48 | rate = osc->rate_min; | 48 | rate = osc->rate_min; |
49 | 49 | ||
50 | if (WARN_ON(osc->rate_max && rate > osc->rate_max)) | 50 | if (osc->rate_max && rate > osc->rate_max) |
51 | rate = osc->rate_max; | 51 | rate = osc->rate_max; |
52 | 52 | ||
53 | return rate; | 53 | return rate; |
@@ -104,6 +104,7 @@ static int vexpress_osc_probe(struct platform_device *pdev) | |||
104 | return PTR_ERR(clk); | 104 | return PTR_ERR(clk); |
105 | 105 | ||
106 | of_clk_add_provider(pdev->dev.of_node, of_clk_src_simple_get, clk); | 106 | of_clk_add_provider(pdev->dev.of_node, of_clk_src_simple_get, clk); |
107 | clk_hw_set_rate_range(&osc->hw, osc->rate_min, osc->rate_max); | ||
107 | 108 | ||
108 | dev_dbg(&pdev->dev, "Registered clock '%s'\n", init.name); | 109 | dev_dbg(&pdev->dev, "Registered clock '%s'\n", init.name); |
109 | 110 | ||