Re: [RFC] [PATCH] Device Tree on ARM platform

Jean-Christophe PLAGNIOL-VILLARD
2009-05-27T20:43:17Z

On 13:28 Wed 27 May , David Miller wrote:
> From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> Date: Wed, 27 May 2009 21:39:27 +0200
>
> > when you have to support the same driver for non OF and OF platform it's
> > really a pain in the ass
>
> We could embed the platform_device object into the of_platform_device
> structure, it's just an implementation issue.
>
> But more to the point, I can tell you that anything platform_device
> does can be implemented in terms of of_platform_device but the
> opposite is not true.
This is one of the problem I face not so long ago when I want to the boot
count limit functionnality which is only availlble for of platform

That's why I think having a simplest way to have driver availlable on the
twice platform is important. It will be a win-win at the end

Best Regards,
J.