From: Liam Girdwood Date: Fri, 2 Mar 2012 16:13:44 +0000 (+0000) Subject: ASoC: core: cleanup platform debugfs on probe failure. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=02db110351019eef2d6b10e08162dd370542e9fd;p=linux-beck.git ASoC: core: cleanup platform debugfs on probe failure. Make sure we cleanup the platform debugfs when probe fails. Signed-off-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 1bdc67e0bd16..29dbbd793fc6 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -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;