msm: clock-local2: Remove warning when clk_reset() is not supported
Some driver (such as GDSC) may want to, for convenience, call
clk_reset() on a list of clocks, some of which may not support
the feature. Continue to return an error, but don't print a
warning in these cases.
Change-Id: I3fe75ea87333b16df528906554ee065076c18673
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
diff --git a/arch/arm/mach-msm/clock-local2.c b/arch/arm/mach-msm/clock-local2.c
index e67d973..fff517a 100644
--- a/arch/arm/mach-msm/clock-local2.c
+++ b/arch/arm/mach-msm/clock-local2.c
@@ -559,11 +559,8 @@
{
struct branch_clk *branch = to_branch_clk(c);
- if (!branch->bcr_reg) {
- WARN("clk_reset called on an unsupported clock (%s)\n",
- c->dbg_name);
+ if (!branch->bcr_reg)
return -EPERM;
- }
return __branch_clk_reset(BCR_REG(branch), action);
}