On 9/2/2011 1:40 AM, Hilman, Kevin wrote:
Benoit Cousson<b-cousson@xxxxxx> writes:
Add a notifier called during device_add phase. If a of_node is present,
retrieve the hwmod entry in order to populate propely 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 without that information.
Signed-off-by: Benoit Cousson<b-cousson@xxxxxx>
Cc: Kevin Hilman<khilman@xxxxxx>
Nice, minor comment below...
[...]
+ case BUS_NOTIFY_DEL_DEVICE:
+ dev_dbg(&pdev->dev, "del_device\n");
Need a delete/cleanup here.
Looks like all all it needs to do is call omap_device_delete()?
Indeed, I was too lazy to add it.
Thanks,
Benoit
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html