Skip to content

Commit

Permalink
msm: iommu: Use clk_set_rate() instead of clk_set_min_rate()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Boyd authored and David Brown committed Jun 24, 2013
1 parent 1107b17 commit 8d21415
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/iommu/msm_iommu_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

#include <mach/iommu_hw-8xxx.h>
#include <mach/iommu.h>
#include <mach/clk.h>

struct iommu_ctx_iter_data {
/* input */
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 8d21415

Please sign in to comment.