提交 02db1103 编写于 作者: L Liam Girdwood 提交者: Mark Brown

ASoC: core: cleanup platform debugfs on probe failure.

Make sure we cleanup the platform debugfs when probe fails.
Signed-off-by: NLiam Girdwood <lrg@ti.com>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 016ab467
...@@ -1112,6 +1112,7 @@ static int soc_probe_platform(struct snd_soc_card *card, ...@@ -1112,6 +1112,7 @@ static int soc_probe_platform(struct snd_soc_card *card,
return 0; return 0;
err_probe: err_probe:
soc_cleanup_platform_debugfs(platform);
module_put(platform->dev->driver->owner); module_put(platform->dev->driver->owner);
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册