machine_is_dt() ?

Linus Walleij linus.walleij at
Mon Jan 7 18:14:55 EST 2013

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

Linus Walleij

More information about the linux-arm-kernel mailing list