tty: serial: imx: Use platform_get_irq_optional() for optional IRQs
authorAnson Huang <Anson.Huang@nxp.com>
Wed, 9 Oct 2019 09:49:19 +0000 (17:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2019 11:12:28 +0000 (13:12 +0200)
commit31a8d8fa84c51d3ab00bf059158d5de6178cf890
treeffa37a1a937dc596cfe46b2324e377bfd78ffb1d
parentff30283a8de4f978dad120936c1af507d01a6a98
tty: serial: imx: Use platform_get_irq_optional() for optional IRQs

All i.MX SoCs except i.MX1 have ONLY one necessary IRQ, use
platform_get_irq_optional() to get second/third IRQ which are
optional to avoid below error message during probe:

[    0.726219] imx-uart 30860000.serial: IRQ index 1 not found
[    0.731329] imx-uart 30860000.serial: IRQ index 2 not found

Fixes: 7723f4c5ecdb8d83 ("driver core: platform: Add an error message to platform_get_irq*()")
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Link: https://lore.kernel.org/r/1570614559-11900-1-git-send-email-Anson.Huang@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c