[RFC PATCH 12/16] clk: hifiberry-dacpro: add ACPI support
Andy Shevchenko
andriy.shevchenko at linux.intel.com
Wed Apr 22 11:47:26 CEST 2020
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
More information about the Alsa-devel
mailing list