From: Jerome Brunet Date: Mon, 27 Aug 2018 14:15:29 +0000 (+0200) Subject: ASoC: meson: axg-fifo: report interrupt request failure X-Git-Tag: v5.4.17~4954^2~1^2^2~202 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=dadfab7272b13ca441efdb9aa9117bc669680b05;p=arm%2Flinux.git ASoC: meson: axg-fifo: report interrupt request failure 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 Signed-off-by: Mark Brown --- diff --git a/sound/soc/meson/axg-fifo.c b/sound/soc/meson/axg-fifo.c index 30262550e37b..0e4f65e654c4 100644 --- a/sound/soc/meson/axg-fifo.c +++ b/sound/soc/meson/axg-fifo.c @@ -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);