usb: gadget: at91-udc: fix irq and iomem resource retrieval
authorJean-Jacques Hiblot <jjhiblot@traphandler.com>
Wed, 12 Mar 2014 16:30:08 +0000 (17:30 +0100)
committerFelipe Balbi <balbi@ti.com>
Wed, 30 Apr 2014 16:59:06 +0000 (11:59 -0500)
commit886c7c426d465732ec9d1b2bbdda5642fc2e7e05
treedbe73b64ddfcf3b5eb6bdb1792cc1474c4053271
parent66668991c3515855e7a9881788feb7026f9f729f
usb: gadget: at91-udc: fix irq and iomem resource retrieval

When using dt resources retrieval (interrupts and reg properties) there is
no predefined order for these resources in the platform dev resource
table. Also don't expect the number of resource to be always 2.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@traphandler.com>
Acked-by: Boris BREZILLON <b.brezillon@overkiz.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: stable <stable@vger.kernel.org> # 3.4
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/at91_udc.c