22 Apr
2020
22 Apr
'20
11:47 a.m.
On Wed, Apr 22, 2020 at 02:32:15AM -0700, Stephen Boyd wrote:
Quoting Pierre-Louis Bossart (2020-04-09 12:58:37)
On ACPI platforms the of_ functions are irrelevant, conditionally compile them out and add devm_clk_hw_register_clkdev() call instead.
...
Use if (!IS_ENABLED(CONFIG_ACPI)) instead?
ret = of_clk_add_hw_provider(dev->of_node, of_clk_hw_simple_get, &proclk->hw);
I'm rather wondering if we have OF stuff integrated properly to CLK framework to avoid first branch completely.
+#else
ret = devm_clk_hw_register_clkdev(dev, &proclk->hw,
init.name, NULL);
+#endif
--
With Best Regards,
Andy Shevchenko