]> git.karo-electronics.de Git - linux-beck.git/commit
usb: musb: add names for IRQs in structure resource
authorHema Kalliguddi <hemahk@ti.com>
Wed, 29 Sep 2010 16:26:39 +0000 (11:26 -0500)
committerFelipe Balbi <balbi@ti.com>
Wed, 1 Dec 2010 08:56:33 +0000 (10:56 +0200)
commitfcf173e4511193b1efeccb0f22a8c641b464353b
treea5cc4b3e560d857513a6684ed307b04a492b9670
parentea65df57c2eea803535a071752efb030c46a11f5
usb: musb: add names for IRQs in structure resource

Soon resource data will get automatically
populated from a set of autogenerated data
from TI's hardware database for the OMAP
platform.

Such database, might not have resources at
the expected order by the current drivers.

While we could hack in some exceptions to
that tool to generate resources in a specific
order, it seems less fragile to use the
resource name instead. That way, no matter
what order the resources are generated, the
driver still work.

Modified the OMAP, Blackfin and Davinci
architecture files to add the name of the IRQs
in the resource structures and musb driver to
use the platform_get_irq_byname() api to get
the device and dma irq numbers instead of using
the index.

Cc: Tony Lindgren <tony@atomide.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Hema HK <hemahk@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
arch/arm/mach-davinci/usb.c
arch/arm/mach-omap2/usb-musb.c
arch/blackfin/mach-bf527/boards/cm_bf527.c
arch/blackfin/mach-bf527/boards/ezbrd.c
arch/blackfin/mach-bf527/boards/ezkit.c
arch/blackfin/mach-bf548/boards/cm_bf548.c
arch/blackfin/mach-bf548/boards/ezkit.c
drivers/usb/musb/cppi_dma.c
drivers/usb/musb/musb_core.c
drivers/usb/musb/musbhsdma.c