aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/msm_iommu_dev.c
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2013-06-17 13:43:13 -0400
committerDavid Brown <davidb@codeaurora.org>2013-06-24 16:06:42 -0400
commit8d21415348c0961eedd78e1767095f61d870c8fc (patch)
tree0238329466c745a1fffbac74c131fd6dfcd9c971 /drivers/iommu/msm_iommu_dev.c
parent1107b1716bb21912ed9eed156d8c0251a8f3a3fa (diff)
msm: iommu: Use clk_set_rate() instead of clk_set_min_rate()
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. Cc: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Acked-by: Joerg Roedel <joro@8bytes.org> Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'drivers/iommu/msm_iommu_dev.c')
-rw-r--r--drivers/iommu/msm_iommu_dev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iommu/msm_iommu_dev.c b/drivers/iommu/msm_iommu_dev.c
index d344f6ab8c12..9144a6beed92 100644
--- a/drivers/iommu/msm_iommu_dev.c
+++ b/drivers/iommu/msm_iommu_dev.c
@@ -29,7 +29,6 @@
29 29
30#include <mach/iommu_hw-8xxx.h> 30#include <mach/iommu_hw-8xxx.h>
31#include <mach/iommu.h> 31#include <mach/iommu.h>
32#include <mach/clk.h>
33 32
34struct iommu_ctx_iter_data { 33struct iommu_ctx_iter_data {
35 /* input */ 34 /* input */
@@ -168,7 +167,7 @@ static int msm_iommu_probe(struct platform_device *pdev)
168 167
169 if (!IS_ERR(iommu_clk)) { 168 if (!IS_ERR(iommu_clk)) {
170 if (clk_get_rate(iommu_clk) == 0) 169 if (clk_get_rate(iommu_clk) == 0)
171 clk_set_min_rate(iommu_clk, 1); 170 clk_set_rate(iommu_clk, 1);
172 171
173 ret = clk_prepare_enable(iommu_clk); 172 ret = clk_prepare_enable(iommu_clk);
174 if (ret) { 173 if (ret) {