]> 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)
commit718bfd76932c566f79eb55083693ef0b68071bf8
treeb12d20715e1b419c6a9ed4b0d163a40e69ad83d1
parent726072e5dd459e3831d1dd4308ba469ff3ded419
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