diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2016-05-30 11:55:10 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-08-15 12:09:52 -0700 |
commit | 994deaae37a05bfe59aded7bb176092fb849c5b4 (patch) | |
tree | 5d630d2c094f7fdeae32dfac92f741f83dc33a0c /drivers/clk/clk-twl6040.c | |
parent | 225ff4e87ab2ceca4d4db05a5930a8c7ad16d754 (diff) |
clk: twl6040: Register the clock as of_clk_provider
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>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/clk-twl6040.c')
-rw-r--r-- | drivers/clk/clk-twl6040.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 = { |