[PATCH RFC 1/7] platform: add a device node
Grant Likely
grant.likely at secretlab.ca
Mon Feb 18 08:33:18 EST 2013
On Sun, Feb 10, 2013 at 9:37 AM, Russell King - ARM Linux
<linux at arm.linux.org.uk> wrote:
> On Sun, Feb 10, 2013 at 02:49:21AM +0100, Javier Martinez Canillas wrote:
>> I knew this would be controversial and that's why I didn't mean it to be a patch
>> but a RFC :)
>>
>> The problem basically is that you have to associate the platform device with its
>> corresponding DT device node because it can be used in the driver probe function.
>
> When DT is being used, doesn't DT create the platform devices for you,
> with the device node already set correctly?
>
> Manually creating platform devices and adding DT nodes to it sounds like
> the wrong thing to be doing.
Right; I'd expect your platform device creation to go through the
of_platform_populate() route. What is your use-case?
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
More information about the linux-arm-kernel
mailing list