ASoC: stm32: i2s: return the get_irq error
authorFabien Dessenne <fabien.dessenne@st.com>
Wed, 24 Apr 2019 15:28:44 +0000 (17:28 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 25 Apr 2019 18:41:33 +0000 (19:41 +0100)
During probe, return the "get_irq" error value instead of -ENOENT. This
allows the driver to be deferred probed if needed.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/stm/stm32_i2s.c

index 8968458eec62d6b796e2eaae3df508e03c375e6d..e707d28cb2031b69906b133d0113862943743fa0 100644 (file)
@@ -845,8 +845,9 @@ static int stm32_i2s_parse_dt(struct platform_device *pdev,
        /* Get irqs */
        irq = platform_get_irq(pdev, 0);
        if (irq < 0) {
-               dev_err(&pdev->dev, "no irq for node %s\n", pdev->name);
-               return -ENOENT;
+               if (irq != -EPROBE_DEFER)
+                       dev_err(&pdev->dev, "no irq for node %s\n", pdev->name);
+               return irq;
        }
 
        ret = devm_request_irq(&pdev->dev, irq, stm32_i2s_isr, IRQF_ONESHOT,