OMAP: omap_device: Fix to support multiple hwmods for a single device
authorKishon Vijay Abraham I <kishon@ti.com>
Fri, 24 Sep 2010 16:23:18 +0000 (10:23 -0600)
committerPaul Walmsley <paul@pwsan.com>
Fri, 24 Sep 2010 16:23:18 +0000 (10:23 -0600)
commitf39f4898ac72fec92066f15aef0e7485013482ea
tree3f989719e1dd77257fe05e0dcdc8c44c3f58f3d3
parent74ff3a68ed11f1e9eede4fe301f42cc3cdf7396a
OMAP: omap_device: Fix to support multiple hwmods for a single device

Currently there is a bug in the existing omap_device core code when
extracting the hwmod structures passed to omap_device_build_ss(). This bug
gets exposed only when passing multiple hwmod structures to
omap_device_build_ss() resulting in incorrect extraction from second hwmod
structure.

This fix uses the pointer to pointer to omap_hwmod structure (array of
pointers to omap_hwmod structure) passed to omap_device_build_ss() to
correctly extract the appropriate omap_hwmod structure.

This patch has been created and tested on lo/master and mainline.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Acked-by: Benoit Cousson <b-cousson@ti.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Charulatha V <charu@ti.com>
Cc: Shubhrajyoti D <shubhrajyoti@ti.com>
arch/arm/plat-omap/omap_device.c