On Sun, Jan 27, 2013 at 06:23:58PM +0100, Andrew Lunn wrote: > > > + clkspec.np = np; > > > + clkspec.args_count = 1; > > > + clkspec.args[0] = 1; > > > + > > > + priv.cpu_clk = of_clk_get_from_provider(&clkspec); > > > > Oh, yet another way to get clocks... > > Yep. I didn't like it, but could not find a better way. It has been > argued that cpufreq drivers should not have nodes in DT. So the normal > of_clk_get() does not work. Since the clocks themselves are > instantiated from DT, there are no clkdev alias, so plain clk_get() > also does not work. > But you should have a cpu node in DT, and it will be perfectly fine to have cpu node consume that core_clk. Shawn -- To unsubscribe from this list: send the line "unsubscribe cpufreq" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html