]> git.baikalelectronics.ru Git - kernel.git/commit
OMAP hwmod: add names to module MPU IRQ lines
authorPaul Walmsley <paul@pwsan.com>
Tue, 8 Dec 2009 23:34:16 +0000 (16:34 -0700)
committerpaul <paul@twilight.(none)>
Sat, 12 Dec 2009 00:00:43 +0000 (17:00 -0700)
commitd66ed24b0011fb50d5c21f85fbdd95a05f0edd24
treeb12d20715e1b419c6a9ed4b0d163a40e69ad83d1
parent673f5781b0a9657060a377acce67f5a9bd84d15a
OMAP hwmod: add names to module MPU IRQ lines

Replace the existing u8 array of module MPU IRQ lines with a struct
that includes a name - similar to the existing struct
omap_hwmod_dma_info.  Device drivers can then use
platform_get_resource_byname() to retrieve specific IRQs without nasty
dependencies on array ordering.

Thanks to Benoît Cousson <b-cousson@ti.com> and Kevin Hilman
<khilman@deeprootsystems.com> for feedback on this approach.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Benoît Cousson <b-cousson@ti.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/omap_hwmod.c
arch/arm/plat-omap/include/plat/omap_hwmod.h