ASoC: kirkwood: fix IRQ error handling
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 23 Oct 2019 15:46:59 +0000 (16:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Oct 2020 18:40:02 +0000 (20:40 +0200)
[ Upstream commit 175fc928198236037174e5c5c066fe3c4691903e ]

Propagate the error code from request_irq(), rather than returning
-EBUSY.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Link: https://lore.kernel.org/r/E1iNIqh-0000tW-EZ@rmk-PC.armlinux.org.uk
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/kirkwood/kirkwood-dma.c

index dafd22e874e99139ccca45599fd8393c93f75dd2..e655425e4819ebb33a5f999408d47925a8b4fc35 100644 (file)
@@ -136,7 +136,7 @@ static int kirkwood_dma_open(struct snd_pcm_substream *substream)
                err = request_irq(priv->irq, kirkwood_dma_irq, IRQF_SHARED,
                                  "kirkwood-i2s", priv);
                if (err)
-                       return -EBUSY;
+                       return err;
 
                /*
                 * Enable Error interrupts. We're only ack'ing them but