mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
ASoC: fsl_ssi: Fix irq error check
Commit 2ffa531078
("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>
This commit is contained in:
parent
97bf6af1f9
commit
64aa5f5843
1 changed files with 2 additions and 2 deletions
|
@ -1362,9 +1362,9 @@ static int fsl_ssi_probe(struct platform_device *pdev)
|
||||||
}
|
}
|
||||||
|
|
||||||
ssi_private->irq = platform_get_irq(pdev, 0);
|
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", np->full_name);
|
dev_err(&pdev->dev, "no irq for node %s\n", np->full_name);
|
||||||
return -ENXIO;
|
return ssi_private->irq;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Are the RX and the TX clocks locked? */
|
/* Are the RX and the TX clocks locked? */
|
||||||
|
|
Loading…
Reference in a new issue