machine_is_dt() ?

Linus Walleij
2013-01-07T23:14:55Z

On Mon, Jan 7, 2013 at 3:59 PM, Rob Herring <robherring2@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.

Yours,
Linus Walleij