]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
msm: iommu: Use clk_set_rate() instead of clk_set_min_rate()
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 4 Jun 2013 19:25:32 +0000 (12:25 -0700)
committerDavid Brown <davidb@codeaurora.org>
Wed, 12 Jun 2013 21:43:30 +0000 (14:43 -0700)
Calling clk_set_min_rate() is no better than just calling
clk_set_rate() because MSM clock code already takes care of
calling the min_rate ops if the clock really needs
clk_set_min_rate() called on it.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
drivers/iommu/msm_iommu_dev.c

index d344f6ab8c12778ea4c419f29251535ca9e06da1..9144a6beed922a70c995c09099f822f02baddca2 100644 (file)
@@ -29,7 +29,6 @@
 
 #include <mach/iommu_hw-8xxx.h>
 #include <mach/iommu.h>
-#include <mach/clk.h>
 
 struct iommu_ctx_iter_data {
        /* input */
@@ -168,7 +167,7 @@ static int msm_iommu_probe(struct platform_device *pdev)
 
        if (!IS_ERR(iommu_clk)) {
                if (clk_get_rate(iommu_clk) == 0)
-                       clk_set_min_rate(iommu_clk, 1);
+                       clk_set_rate(iommu_clk, 1);
 
                ret = clk_prepare_enable(iommu_clk);
                if (ret) {