serial: xilinx: Use platform_get_irq to get irq description structure
authorMichal Simek <michal.simek@xilinx.com>
Mon, 13 Apr 2015 14:34:21 +0000 (16:34 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Sun, 17 May 2015 23:12:38 +0000 (19:12 -0400)
commit57c6da407a51a0f1bbfa38192456b9dffd4cf794
tree4becdeece17702756b2223b43352af1baa4c7741
parent4957c4d378d97ef685768c48dcbe8d95be1b4d92
serial: xilinx: Use platform_get_irq to get irq description structure

[ Upstream commit 5c90c07b98c02198d9777a7c4f3047b0a94bf7ed ]

For systems with CONFIG_SERIAL_OF_PLATFORM=y and device_type =
"serial"; property in DT of_serial.c driver maps and unmaps IRQ (because
driver probe fails). Then a driver is called but irq mapping is not
created that's why driver is failing again in again on request_irq().
Based on this use platform_get_irq() instead of platform_get_resource()
which is doing irq_desc allocation and driver itself can request IRQ.

Fix both xilinx serial drivers in the tree.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
CC: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/tty/serial/uartlite.c
drivers/tty/serial/xilinx_uartps.c