ARM: OMAP2+: hwmod: add function to iterate over struct omap_hwmod_ocp_if
authorPaul Walmsley <paul@pwsan.com>
Thu, 19 Apr 2012 10:04:28 +0000 (04:04 -0600)
committerPaul Walmsley <paul@pwsan.com>
Thu, 19 Apr 2012 10:04:28 +0000 (04:04 -0600)
commit5d95dde7316101656102cb585b73381e4eaadaa7
tree6201af12ed9cb901b96f75b4c4229689e2ce6d38
parent2d6141baf15df188283ada7c0fa04679c4fcf1c7
ARM: OMAP2+: hwmod: add function to iterate over struct omap_hwmod_ocp_if

To reduce the number of lines of data in the OMAP portion of the Linux
code base, subsequent patches will remove the lists of hwmod
interconnect links from the static hwmod data.  These lists will be
built dynamically during boot.  To ease this transition, this patch
centralizes the way that interconnect links are iterated into a single
function, _fetch_next_ocp_if().

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