projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7667428
)
ASoC: fsl_ssi: Fix platform_get_irq() error handling
author
Fabio Estevam
<fabio.estevam@freescale.com>
Wed, 15 Apr 2015 03:08:15 +0000
(
00:08
-0300)
committer
Mark Brown
<broonie@kernel.org>
Fri, 17 Apr 2015 13:10:34 +0000
(14:10 +0100)
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>
sound/soc/fsl/fsl_ssi.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/fsl/fsl_ssi.c
b/sound/soc/fsl/fsl_ssi.c
index e8bb8eef1d16bee3d9d8ca5e4b7e4d5a7a026267..0d48804218b1bdbc31198fbb6b0ce16bc09a4fc3 100644
(file)
--- 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)
}
ssi_private->irq = platform_get_irq(pdev, 0);
- if (
!ssi_private->irq
) {
+ if (
ssi_private->irq < 0
) {
dev_err(&pdev->dev, "no irq for node %s\n", pdev->name);
return ssi_private->irq;
}