diff options
author | Chen Gang <gang.chen@asianux.com> | 2013-09-22 23:36:21 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-09-26 06:28:52 -0400 |
commit | d60336e2f136287de821901d4a1b56179a0f7b69 (patch) | |
tree | 9d899b645a49971f75b87e5ed164862aaf03be0c /sound/soc/fsl | |
parent | 64d2307c3b7daa03dbc0c3a6b514709dd7b6eaee (diff) |
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>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r-- | sound/soc/fsl/fsl_ssi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index cdbb641ef518..35e277379b86 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c | |||
@@ -929,7 +929,7 @@ static int fsl_ssi_probe(struct platform_device *pdev) | |||
929 | ssi_private->ssi_phys = res.start; | 929 | ssi_private->ssi_phys = res.start; |
930 | 930 | ||
931 | ssi_private->irq = irq_of_parse_and_map(np, 0); | 931 | ssi_private->irq = irq_of_parse_and_map(np, 0); |
932 | if (ssi_private->irq == NO_IRQ) { | 932 | if (!ssi_private->irq) { |
933 | dev_err(&pdev->dev, "no irq for node %s\n", np->full_name); | 933 | dev_err(&pdev->dev, "no irq for node %s\n", np->full_name); |
934 | return -ENXIO; | 934 | return -ENXIO; |
935 | } | 935 | } |