OMAP: omap_device: ensure hwmod tracks attached omap_device pointer
authorKevin Hilman <khilman@deeprootsystems.com>
Mon, 26 Jul 2010 22:34:30 +0000 (16:34 -0600)
committerPaul Walmsley <paul@pwsan.com>
Mon, 26 Jul 2010 22:34:30 +0000 (16:34 -0600)
commit0656358159d7e26205bb9360840759c7c3c0725f
tree7ce6f98ba6d2a87fd6890f4960c17feedb8f2a5b
parent681fddc6d087359c1e3f86529973f5bf62afe4c0
OMAP: omap_device: ensure hwmod tracks attached omap_device pointer

The omap_hwmod struct has a field to track the omap_device that is
attached to it, but it was not being assigned.  Fix by assigning omap_device
pointer when omap_device is built.

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
[paul@pwsan.com: use an array index rather than pointer arithmetic]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/plat-omap/omap_device.c