1
0
Fork 0

MLK-22733 gpio: mxc: use platform_get_irq_optional() to avoid error message

Use platform_get_irq_optional() to avoid error message for the
optional irq.

Fixes: 7723f4c5ec ("driver core: platform: Add an error message to platform_get_irq*()")
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Fugang Duan 2019-10-10 22:39:22 +08:00 committed by Dong Aisheng
parent d0df73dda7
commit 54b0c2f928
1 changed files with 1 additions and 1 deletions

View File

@ -552,7 +552,7 @@ static int mxc_gpio_probe(struct platform_device *pdev)
if (IS_ERR(port->base))
return PTR_ERR(port->base);
port->irq_high = platform_get_irq(pdev, 1);
port->irq_high = platform_get_irq_optional(pdev, 1);
if (port->irq_high < 0)
port->irq_high = 0;