ASoC: meson: axg-fifo: report interrupt request failure
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 27 Aug 2018 14:15:29 +0000 (16:15 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 28 Aug 2018 18:53:34 +0000 (19:53 +0100)
Return value of request_irq() was irgnored. Fix this and report
the failure if any

Fixes: 6dc4fa179fb8 ("ASoC: meson: add axg fifo base driver")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/meson/axg-fifo.c

index 30262550e37b1e2e0195e4ac8d0fb68825ac3f3e..0e4f65e654c4be38130a0e81add85142f06e9d6d 100644 (file)
@@ -203,6 +203,8 @@ static int axg_fifo_pcm_open(struct snd_pcm_substream *ss)
 
        ret = request_irq(fifo->irq, axg_fifo_pcm_irq_block, 0,
                          dev_name(dev), ss);
+       if (ret)
+               return ret;
 
        /* Enable pclk to access registers and clock the fifo ip */
        ret = clk_prepare_enable(fifo->pclk);