ASoC: fsl_ssi: Fix irq error check
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 7 Jan 2015 21:45:40 +0000 (19:45 -0200)
committerMark Brown <broonie@kernel.org>
Thu, 8 Jan 2015 18:17:33 +0000 (18:17 +0000)
commit64aa5f5843ab12455f6984928058a267f385a82c
treeff1bccc0c105359406e328977b96070a90a99779
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
ASoC: fsl_ssi: Fix irq error check

Commit 2ffa531078037a0 ("ASoC: fsl_ssi: Fix module unbound") changed the way to
retrieve the irq number from irq_of_parse_and_map() to platform_get_irq(), but
missed to updated the irq error check accordingly.

We should test for negative irq number and propagate it in the case of error.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_ssi.c