ASoC: fsl_ssi: let check zero instead of check NO_IRQ
authorChen Gang <gang.chen@asianux.com>
Mon, 23 Sep 2013 03:36:21 +0000 (11:36 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 26 Sep 2013 10:28:52 +0000 (11:28 +0100)
commitd60336e2f136287de821901d4a1b56179a0f7b69
tree9d899b645a49971f75b87e5ed164862aaf03be0c
parent64d2307c3b7daa03dbc0c3a6b514709dd7b6eaee
ASoC: fsl_ssi: let check zero instead of check NO_IRQ

NO_IRQ may be defined as '(unsigned int) -1' in some architectures
(arm, sh ...), and either may not be defined in some architectures
which can enable SND_SOC_FSL_SSI (e.g. allmodconfig for arc).

When irq_of_parse_and_map() fails, it will always return 0, so need
check zero instead of NO_IRQ, or will cause compiling issue or run
time bug in some architectures.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/fsl_ssi.c