]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: core: cleanup platform debugfs on probe failure.
authorLiam Girdwood <lrg@ti.com>
Fri, 2 Mar 2012 16:13:44 +0000 (16:13 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 2 Mar 2012 16:20:44 +0000 (16:20 +0000)
Make sure we cleanup the platform debugfs when probe fails.

Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c

index 1bdc67e0bd16eb4c8fa59ea8a2c3a24feea3257b..29dbbd793fc6267796e1f3a68109fa5295bb661d 100644 (file)
@@ -1112,6 +1112,7 @@ static int soc_probe_platform(struct snd_soc_card *card,
        return 0;
 
 err_probe:
+       soc_cleanup_platform_debugfs(platform);
        module_put(platform->dev->driver->owner);
 
        return ret;