]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
ASoC: fsl_ssi: fix error path in probe
authorJiada Wang <jiada_wang@mentor.com>
Tue, 2 Dec 2014 05:55:06 +0000 (14:55 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 4 Dec 2014 22:47:57 +0000 (22:47 +0000)
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 <jiada_wang@mentor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_ssi.c

index ad12d4c5e8d2322b6d6f03a27e1677179eb62eeb..7dee341603b90b0a9532d6f3b2e6bd578ce50905 100644 (file)
@@ -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