[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1402592023-13416-3-git-send-email-grygorii.strashko@ti.com>
Date: Thu, 12 Jun 2014 19:53:43 +0300
From: Grygorii Strashko <grygorii.strashko@...com>
To: <geert+renesas@...der.be>
CC: <laurent.pinchart@...asonboard.com>, <ulf.hansson@...aro.org>,
<khilman@...aro.org>, <grant.likely@...retlab.ca>,
<mturquette@...aro.org>, <tomasz.figa@...il.com>,
<ben.dooks@...ethink.co.uk>, <horms@...ge.net.au>,
<magnus.damm@...il.com>, <rjw@...ysocki.net>,
<linux-sh@...r.kernel.org>, <linux-pm@...r.kernel.org>,
<devicetree@...r.kernel.org>, <linux-omap@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>,
Grygorii Strashko <grygorii.strashko@...com>
Subject: [RFC PATCH 2/2] of/clk: use "clkops-clocks" to specify clocks handled by clock_ops domain
Use "clkops-clocks" property to specify clocks handled by
clock_ops domain PM domain. Only clocks defined in "clkops-clocks"
set of clocks will be handled by Runtime PM through clock_ops
Pm domain.
Signed-off-by: Grygorii Strashko <grygorii.strashko@...com>
---
drivers/of/of_clk.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/drivers/of/of_clk.c b/drivers/of/of_clk.c
index 35f5e9f..5f9b90e 100644
--- a/drivers/of/of_clk.c
+++ b/drivers/of/of_clk.c
@@ -86,11 +86,8 @@ int of_clk_register_runtime_pm_clocks(struct device_node *np,
struct clk *clk;
int error;
- for (i = 0; (clk = of_clk_get(np, i)) && !IS_ERR(clk); i++) {
- if (!clk_may_runtime_pm(clk)) {
- clk_put(clk);
- continue;
- }
+ for (i = 0; (clk = of_clk_get_from_set(np, "clkops", i)) &&
+ !IS_ERR(clk); i++) {
error = of_clk_register(dev, clk);
if (error) {
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists