Skip to content

Commit

Permalink
ASoC: fsl_ssi: fix error path in probe
Browse files Browse the repository at this point in the history
SSI component isn't unregistered if fsl_ssi_debugfs_create() fails
in probe phase.

To fix it, this commit replaces label error_asoc_register with
error_irq.

Signed-off-by: Jiada Wang <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
jiada-wang authored and broonie committed Dec 4, 2014
1 parent 2ffa531 commit 4c9a884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/fsl/fsl_ssi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,7 @@ static int fsl_ssi_probe(struct platform_device *pdev)

ret = fsl_ssi_debugfs_create(&ssi_private->dbg_stats, &pdev->dev);
if (ret)
goto error_asoc_register;
goto error_irq;

/*
* If codec-handle property is missing from SSI node, we assume
Expand Down

0 comments on commit 4c9a884

Please sign in to comment.