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>
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 = {