diff options
author | Fabien Dessenne <fabien.dessenne@st.com> | 2019-04-24 17:28:44 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-04-25 19:41:33 +0100 |
commit | 0bbf4084e0cfbbbff8673f3b9867778d5d4b1d6f (patch) | |
tree | e83ef68747460c0fbc36834fcf50aad6fcd59415 /sound/soc/stm | |
parent | 66287def435315d9d8de740da4c543e37630b897 (diff) | |
download | lwn-0bbf4084e0cfbbbff8673f3b9867778d5d4b1d6f.tar.gz lwn-0bbf4084e0cfbbbff8673f3b9867778d5d4b1d6f.zip |
ASoC: stm32: i2s: return the get_irq error
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>
Diffstat (limited to 'sound/soc/stm')
-rw-r--r-- | sound/soc/stm/stm32_i2s.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/stm/stm32_i2s.c b/sound/soc/stm/stm32_i2s.c index 8968458eec62..e707d28cb203 100644 --- a/sound/soc/stm/stm32_i2s.c +++ b/sound/soc/stm/stm32_i2s.c @@ -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, |