diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2015-04-14 23:08:15 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-04-17 09:10:34 -0400 |
commit | 28ecc0b658e2ac882faa80e7ff1d72d144299bd0 (patch) | |
tree | 08e837eff3cc15df72de6e038b3bc42303e96819 /sound/soc | |
parent | 7667428f80526d908124e0647ac5dbe3dad88900 (diff) |
ASoC: fsl_ssi: Fix platform_get_irq() error handling
We should check whether platform_get_irq() returns a negative number and
propagate the error in this case.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-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 e8bb8eef1d16..0d48804218b1 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c | |||
@@ -1357,7 +1357,7 @@ static int fsl_ssi_probe(struct platform_device *pdev) | |||
1357 | } | 1357 | } |
1358 | 1358 | ||
1359 | ssi_private->irq = platform_get_irq(pdev, 0); | 1359 | ssi_private->irq = platform_get_irq(pdev, 0); |
1360 | if (!ssi_private->irq) { | 1360 | if (ssi_private->irq < 0) { |
1361 | dev_err(&pdev->dev, "no irq for node %s\n", pdev->name); | 1361 | dev_err(&pdev->dev, "no irq for node %s\n", pdev->name); |
1362 | return ssi_private->irq; | 1362 | return ssi_private->irq; |
1363 | } | 1363 | } |