msm: rotator: Replace clk_set_min_rate() with clk_set_rate()
The rotator driver requests exact rates. There is no need to call
the clk_set_min_rate() API, which will soon be removed altogether.
Call clk_set_rate() instead.
Change-Id: Ica9cb30f85132e92a00b0000eea498c47645b697
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
diff --git a/drivers/char/msm_rotator.c b/drivers/char/msm_rotator.c
index 696a7bd..edf5c27 100644
--- a/drivers/char/msm_rotator.c
+++ b/drivers/char/msm_rotator.c
@@ -19,7 +19,6 @@
#include <linux/sched.h>
#include <linux/uaccess.h>
#include <linux/clk.h>
-#include <mach/clk.h>
#include <linux/android_pmem.h>
#include <linux/msm_rotator.h>
#include <linux/io.h>
@@ -1339,7 +1338,7 @@
goto error_imem_clk;
}
if (pdata->rotator_clks[i].clk_rate)
- clk_set_min_rate(msm_rotator_dev->imem_clk,
+ clk_set_rate(msm_rotator_dev->imem_clk,
pdata->rotator_clks[i].clk_rate);
}
if (pdata->rotator_clks[i].clk_type == ROTATOR_PCLK) {
@@ -1355,7 +1354,7 @@
}
if (pdata->rotator_clks[i].clk_rate)
- clk_set_min_rate(msm_rotator_dev->pclk,
+ clk_set_rate(msm_rotator_dev->pclk,
pdata->rotator_clks[i].clk_rate);
}
@@ -1372,7 +1371,7 @@
}
if (pdata->rotator_clks[i].clk_rate)
- clk_set_min_rate(msm_rotator_dev->core_clk,
+ clk_set_rate(msm_rotator_dev->core_clk,
pdata->rotator_clks[i].clk_rate);
}
}