diff options
author | Liam Girdwood <lrg@ti.com> | 2012-03-02 11:13:44 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-03-02 11:20:44 -0500 |
commit | 02db110351019eef2d6b10e08162dd370542e9fd (patch) | |
tree | c5a8d1e2c388282b1704700000aac21e99fff7f9 /sound/soc/soc-core.c | |
parent | 016ab467aa53639d68b03386885c481b8761018e (diff) |
ASoC: core: cleanup platform debugfs on probe failure.
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>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, | |||
1112 | return 0; | 1112 | return 0; |
1113 | 1113 | ||
1114 | err_probe: | 1114 | err_probe: |
1115 | soc_cleanup_platform_debugfs(platform); | ||
1115 | module_put(platform->dev->driver->owner); | 1116 | module_put(platform->dev->driver->owner); |
1116 | 1117 | ||
1117 | return ret; | 1118 | return ret; |