OMAP: hwmod: Fix wrong pointer iteration in oh->slaves
authorBenoit Cousson <b-cousson@ti.com>
Thu, 20 May 2010 18:31:09 +0000 (12:31 -0600)
committerPaul Walmsley <paul@pwsan.com>
Thu, 20 May 2010 18:31:09 +0000 (12:31 -0600)
commit682fdc96f3afb5ec34e4893fae41d09346d656ed
tree89b6fe2029f78934e0fe002426ef05599fa868c8
parent33f7ec81fb3e525eec0575f33dbab02240eda6d4
OMAP: hwmod: Fix wrong pointer iteration in oh->slaves

The iteration is currently done on the omap_hwmod_ocp_if pointer
and not on the table pointer that reference them.
It worked most of the time because the structure are contiguous in
memory.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_hwmod.c