diff mbox series

ASoC: kirkwood: fix IRQ error handling

Message ID E1iNIqh-0000tW-EZ@rmk-PC.armlinux.org.uk (mailing list archive)
State Accepted
Commit 175fc928198236037174e5c5c066fe3c4691903e
Headers show
Series ASoC: kirkwood: fix IRQ error handling | expand

Commit Message

Russell King (Oracle) Oct. 23, 2019, 3:46 p.m. UTC
Propagate the error code from request_irq(), rather than returning
-EBUSY.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
---
 sound/soc/kirkwood/kirkwood-dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/sound/soc/kirkwood/kirkwood-dma.c b/sound/soc/kirkwood/kirkwood-dma.c
index 6f69f314f2c2..d2d5c25bf550 100644
--- a/sound/soc/kirkwood/kirkwood-dma.c
+++ b/sound/soc/kirkwood/kirkwood-dma.c
@@ -132,7 +132,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