Skip to content

Commit

Permalink
ASoC: core: cleanup platform debugfs on probe failure.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Liam Girdwood authored and Mark Brown committed Mar 2, 2012
1 parent 016ab46 commit 02db110
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 02db110

Please sign in to comment.