Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1408891 > unrolled thread

[PATCH v1 02/14] clk: twl6040: Register the clock as of_clk_provider

Started byPeter Ujfalusi <peter.ujfalusi@ti.com>
First post2016-05-30 11:00 +0200
Last post2016-05-30 11:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v1 02/14] clk: twl6040: Register the clock as of_clk_provider Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-05-30 11:00 +0200

#1408891 — [PATCH v1 02/14] clk: twl6040: Register the clock as of_clk_provider

FromPeter Ujfalusi <peter.ujfalusi@ti.com>
Date2016-05-30 11:00 +0200
Subject[PATCH v1 02/14] clk: twl6040: Register the clock as of_clk_provider
Message-ID<rErdh-1TA-53@gated-at.bofh.it>
In order ot be able to use the pdmclk clock via DT it need to be registered
as of_clk_provide.
Since the twl6040 clock driver does not have it's own DT node, use the
parent's node for registering.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 drivers/clk/clk-twl6040.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/clk/clk-twl6040.c b/drivers/clk/clk-twl6040.c
index e167e0bbaff5..6a2dbe6a1627 100644
--- a/drivers/clk/clk-twl6040.c
+++ b/drivers/clk/clk-twl6040.c
@@ -95,7 +95,8 @@ static int twl6040_clk_probe(struct platform_device *pdev)
 
 	platform_set_drvdata(pdev, clkdata);
 
-	return 0;
+	return of_clk_add_provider(pdev->dev.parent->of_node,
+				   of_clk_src_simple_get, clkdata->clk);
 }
 
 static struct platform_driver twl6040_clk_driver = {
-- 
2.8.3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web