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
parent
d0df73dda7
commit
54b0c2f928
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue