Re: [PATCH 9/9] OMAP: omap_device: decouple platform_device from omap_device

2011-08-06 Thread Grant Likely
Yes, I think this is the right thing to do. It will certainly make it possible to keep omap-specific hooks out of the device tree of_platform_populate() path by using a notifier to attach hwmod data instead. Lightly-glanced-at-by: Grant Likely g. On Sat, Aug 6, 2011 at 1:19 AM, Kevin Hilman w

[PATCH 9/9] OMAP: omap_device: decouple platform_device from omap_device

2011-08-05 Thread Kevin Hilman
Rather than embedding a struct platform_device inside a struct omap_device, decouple them, leaving only a pointer to the platform_device inside the omap_device. Use the arch-specific data field of the platform_device (pdev_archdata) to add an omap_device pointer after the platform_device has been