ARM: OMAP2+: hwmod: add omap_hwmod_get_resource_byname()
authorPaul Walmsley <paul@pwsan.com>
Thu, 19 Apr 2012 01:10:06 +0000 (19:10 -0600)
committerPaul Walmsley <paul@pwsan.com>
Thu, 19 Apr 2012 10:03:11 +0000 (04:03 -0600)
commit5e8370f1fa01bf232ca4770c6d81bbf42437d2a3
tree66cd1d02d461d5b81afb4a36ea8b7a5a64aff8c7
parentc9aafd23d6c1b466f37f554e9916886e7d4645d0
ARM: OMAP2+: hwmod: add omap_hwmod_get_resource_byname()

The timer integration code pokes around in hwmod data structures.
Those data structures are about to change.  Define a function,
omap_hwmod_get_resource_byname(), for the timer integration code to
use instead.

The original patch has been changed to use struct resource by Tony's
request, although the caller of this function should not be a driver._
Platform drivers should get their data through the regular platform_*
functions; DT drivers through the appropriate of_* functions.  This a
function is only for use by OMAP core code in arch/arm/*omap*.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: BenoƮt Cousson <b-cousson@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/omap_hwmod.c
arch/arm/plat-omap/include/plat/omap_hwmod.h