[PATCH V4 1/5] of: Implement managed of_iomap()

Grant Likely grant.likely at secretlab.ca
Tue Apr 17 01:19:19 EST 2012


On Mon, Apr 16, 2012 at 9:12 AM, viresh kumar <viresh.linux at gmail.com> wrote:
>
> On Apr 16, 2012 8:37 PM, "Grant Likely" <grant.likely at secretlab.ca> wrote:
>>
>> Why is this function needed?  I'm directing drivers away from using
>> of_iomap now since the resource table is populated with the address
>> ranges at device registration time now.  New code should be using
>> platform_get_resource() if it is a platform device.
>>
>
> I thought we must call of_iomap for
> DT only drivers.
> Isn't that the case?

It isn't recommended anymore. Use the bus_type specific helpers instead.

g.


More information about the devicetree-discuss mailing list