]> git.baikalelectronics.ru Git - kernel.git/commit
usb: ohci-at91: fix irq and iomem resource retrieval
authorBoris BREZILLON <b.brezillon@overkiz.com>
Sun, 8 Dec 2013 14:59:59 +0000 (15:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2013 21:22:36 +0000 (13:22 -0800)
commit72ec0ed30f77b9a51f82cf23e1028c801e5ac4ec
treef8ae5339f618535e43b3c32d410dd59b4e4a8fea
parentf6575db4ba29d1c62a7a107a3e81d51bb35ccf77
usb: ohci-at91: 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 resources
table.

Retrieve resources using platform_get_resource and platform_get_irq
functions instead of direct resource table entries to avoid resource type
mismatch.

Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reviewed-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-at91.c