[alsa-devel] [PATCH] ASoC: fsl_ssi: Change irq type to 'int'

Fabio Estevam festevam at gmail.com
Wed Jan 14 13:48:59 CET 2015


From: Fabio Estevam <fabio.estevam at freescale.com>

Since commit 2ffa531078037a0 ("ASoC: fsl_ssi: Fix module unbound") the irq 
number is retrieved via platform_get_irq(), which may fail and return a negative
number, so adapt its type to 'int'.

Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
---
 sound/soc/fsl/fsl_ssi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c
index 65400be..46549de 100644
--- a/sound/soc/fsl/fsl_ssi.c
+++ b/sound/soc/fsl/fsl_ssi.c
@@ -160,7 +160,7 @@ struct fsl_ssi_soc_data {
  */
 struct fsl_ssi_private {
 	struct regmap *regs;
-	unsigned int irq;
+	int irq;
 	struct snd_soc_dai_driver cpu_dai_drv;
 
 	unsigned int dai_fmt;
-- 
1.9.1



More information about the Alsa-devel mailing list