linus.walleij at linaro.org
Mon Jan 7 18:14:55 EST 2013
On Mon, Jan 7, 2013 at 3:59 PM, Rob Herring <robherring2 at gmail.com> wrote:
> You could make the platform code create the platform device in the DT
> case as well. Not all platform devices have to come from a DT node and
> putting virtual devices in DT is wrong.
For the ux500 cpufreq we do exactly this.
When the PRCMU probes in drivers/mfd/db8500-prcmu.c it spawns
a db8500-cpufreq MFD child, and the db8500-cpufreq driver then
probes as a platform device.
More information about the linux-arm-kernel