diff options
author | Hema Kalliguddi <hemahk@ti.com> | 2010-09-29 12:26:39 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2010-12-01 03:56:33 -0500 |
commit | fcf173e4511193b1efeccb0f22a8c641b464353b (patch) | |
tree | a5cc4b3e560d857513a6684ed307b04a492b9670 /arch/arm/mach-omap2/usb-musb.c | |
parent | ea65df57c2eea803535a071752efb030c46a11f5 (diff) |
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>
Diffstat (limited to 'arch/arm/mach-omap2/usb-musb.c')
-rw-r--r-- | arch/arm/mach-omap2/usb-musb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/usb-musb.c b/arch/arm/mach-omap2/usb-musb.c index 72605584bfff..8dae0fa5905e 100644 --- a/arch/arm/mach-omap2/usb-musb.c +++ b/arch/arm/mach-omap2/usb-musb.c | |||
@@ -40,10 +40,12 @@ static struct resource musb_resources[] = { | |||
40 | [1] = { /* general IRQ */ | 40 | [1] = { /* general IRQ */ |
41 | .start = INT_243X_HS_USB_MC, | 41 | .start = INT_243X_HS_USB_MC, |
42 | .flags = IORESOURCE_IRQ, | 42 | .flags = IORESOURCE_IRQ, |
43 | .name = "mc", | ||
43 | }, | 44 | }, |
44 | [2] = { /* DMA IRQ */ | 45 | [2] = { /* DMA IRQ */ |
45 | .start = INT_243X_HS_USB_DMA, | 46 | .start = INT_243X_HS_USB_DMA, |
46 | .flags = IORESOURCE_IRQ, | 47 | .flags = IORESOURCE_IRQ, |
48 | .name = "dma", | ||
47 | }, | 49 | }, |
48 | }; | 50 | }; |
49 | 51 | ||