diff mbox

ASoC: fsl_ssi: Change irq type to 'int'

Message ID 1421239739-7755-1-git-send-email-festevam@gmail.com (mailing list archive)
State Accepted
Commit 9e446ad500db0fd0823990409da17fde9e9cffdc
Headers show

Commit Message

Fabio Estevam Jan. 14, 2015, 12:48 p.m. UTC
From: Fabio Estevam <fabio.estevam@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@freescale.com>
---
 sound/soc/fsl/fsl_ssi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mark Brown Jan. 14, 2015, 5:16 p.m. UTC | #1
On Wed, Jan 14, 2015 at 10:48:59AM -0200, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@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'.

Applied, thanks.
diff mbox

Patch

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;