Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 994deaae authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Stephen Boyd
Browse files

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: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 225ff4e8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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 = {