diff --git a/drivers/tty/serial/qcom_geni_serial.c b/drivers/tty/serial/qcom_geni_serial.c index 3633723acef8..7162fe69be4a 100644 --- a/drivers/tty/serial/qcom_geni_serial.c +++ b/drivers/tty/serial/qcom_geni_serial.c @@ -1947,8 +1947,13 @@ static int qcom_geni_serial_probe(struct platform_device *pdev) uport->irq = irq; uport->has_sysrq = IS_ENABLED(CONFIG_SERIAL_QCOM_GENI_CONSOLE); - if (!data->console) + if (!data->console) { port->wakeup_irq = platform_get_irq_optional(pdev, 1); + if (port->wakeup_irq < 0 && port->wakeup_irq != -ENXIO) { + ret = port->wakeup_irq; + goto error; + } + } if (of_property_read_bool(pdev->dev.of_node, "rx-tx-swap")) port->rx_tx_swap = true;