]> git.baikalelectronics.ru Git - kernel.git/commit
usb: ehci-orion: use platform_get_irq() for DT probing
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 15 May 2014 10:17:26 +0000 (12:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 22:33:12 +0000 (15:33 -0700)
commit004f2f767fc776fdb3f578e24811581d3fda522e
treea90e8b7240ac6fdac6ddd8e17fcaa6b17b471e4e
parentb1a4ed42d536b278d66a6d4d148111d7ed7ecb60
usb: ehci-orion: use platform_get_irq() for DT probing

Commit 315cb7e7e22e00bcaa61426f1b59932ce27b7509 ('ARM: Kirkwood:
ehci-orion: Add device tree binding') added the Device Tree binding
for the ehci-orion driver. To achieve that with the irq, it used the
irq_of_parse_and_map() function when probed in DT-mode, and
platform_get_irq() when probed in non-DT mode.

This is not necessary: platform_get_irq() works just as fine in
DT-mode, since the conversion from DT information to 'struct resource'
is done by the generic layers of the kernel.

Therefore, this commit switches back to use just platform_get_irq().

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-orion.c