serial/8250_dw: use platform_get_irq() instead of platform_get_resource()
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Tue, 3 Mar 2015 15:11:14 +0000 (18:11 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 02:58:57 +0000 (03:58 +0100)
commit833b1f7b5191e4ac15dfd86aa8137f2349f0fc30
treec594ababc69d62bf2930102dd518c4dbce2459e2
parentf427c990e2d0fd30336b0c252aa7e38e4cffdea2
serial/8250_dw: use platform_get_irq() instead of platform_get_resource()

It is not recommened to use platform_get_resource(pdev, IORESOURCE_IRQ)
for requesting IRQ's resources any more, as they can be not ready yet in
case of DT-booting.

platform_get_irq() instead is a recommended way for getting IRQ even if
it was not retrieved earlier.

It also makes code simpler because we're getting "int" value right away
and no conversion from resource to int is required.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dw.c