msm: clock: Route clk_set_rate() to clk_set_min_rate() if CLKFLAG_MIN set

Use of the proprietary clk_set_min_rate() API is being phased out globally
in favor of the standard clk_set_rate() API. Use CLKFLAG_MIN to alter the
meaning of clk_set_rate() to match that of clk_set_min_rate(). This
provides an easy migration path for drivers currently using
clk_set_min_rate().

Change-Id: I9eddc53443437250ce2812a3646e9ffb8b36852f
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
diff --git a/arch/arm/mach-msm/clock-voter.c b/arch/arm/mach-msm/clock-voter.c
index 56beca1..2624f6c 100644
--- a/arch/arm/mach-msm/clock-voter.c
+++ b/arch/arm/mach-msm/clock-voter.c
@@ -61,7 +61,7 @@
 		new_rate = max(other_rate, rate);
 
 		if (new_rate != cur_rate) {
-			ret = clk_set_min_rate(parent, new_rate);
+			ret = clk_set_rate(parent, new_rate);
 			if (ret)
 				goto unlock;
 		}
@@ -90,7 +90,7 @@
 	 */
 	cur_rate = voter_clk_aggregate_rate(parent);
 	if (v->rate > cur_rate) {
-		ret = clk_set_min_rate(parent, v->rate);
+		ret = clk_set_rate(parent, v->rate);
 		if (ret)
 			goto out;
 	}
@@ -119,7 +119,7 @@
 	cur_rate = max(new_rate, v->rate);
 
 	if (new_rate < cur_rate)
-		clk_set_min_rate(parent, new_rate);
+		clk_set_rate(parent, new_rate);
 
 	spin_unlock_irqrestore(&voter_clk_lock, flags);
 }