Re: [PATCH v2 2/2] OMAP: omap_device: Add a method to build an omap_device from a DT node

2011-09-21 Thread Kevin Hilman
Cousson, Benoit b-cous...@ti.com writes: On 9/17/2011 6:13 PM, Grant Likely wrote: On Fri, Sep 16, 2011 at 04:43:19PM +0200, Benoit Cousson wrote: [...] +} + +static int _omap_device_notifier_call(struct notifier_block *nb, + unsigned long event, void *dev)

Re: [PATCH v2 2/2] OMAP: omap_device: Add a method to build an omap_device from a DT node

2011-09-19 Thread Cousson, Benoit
On 9/17/2011 6:13 PM, Grant Likely wrote: On Fri, Sep 16, 2011 at 04:43:19PM +0200, Benoit Cousson wrote: Add a notifier called during device_add phase. If an of_node is present, retrieve the hwmod entry in order to populate properly the omap_device structure. For the moment the resource from

Re: [PATCH v2 2/2] OMAP: omap_device: Add a method to build an omap_device from a DT node

2011-09-17 Thread Grant Likely
On Fri, Sep 16, 2011 at 04:43:19PM +0200, Benoit Cousson wrote: Add a notifier called during device_add phase. If an of_node is present, retrieve the hwmod entry in order to populate properly the omap_device structure. For the moment the resource from the device-tree are overloaded. DT does

[PATCH v2 2/2] OMAP: omap_device: Add a method to build an omap_device from a DT node

2011-09-16 Thread Benoit Cousson
Add a notifier called during device_add phase. If an of_node is present, retrieve the hwmod entry in order to populate properly the omap_device structure. For the moment the resource from the device-tree are overloaded. DT does not support named resource yet, and thus, most driver will not work