Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193364
b: refs/heads/master
c: b2dfa62
h: refs/heads/master
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Mark Brown committed Mar 19, 2010
1 parent 9b360e6 commit 043f6d3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fd23b7dee5e4d369f620979cb120f53629389355
refs/heads/master: b2dfa62c525fbe4d89790b6fa90af7c3f1c052ae
27 changes: 13 additions & 14 deletions trunk/sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1283,26 +1283,25 @@ static int soc_remove(struct platform_device *pdev)
struct snd_soc_platform *platform = card->platform;
struct snd_soc_codec_device *codec_dev = socdev->codec_dev;

if (!card->instantiated)
return 0;
if (card->instantiated) {
run_delayed_work(&card->delayed_work);

run_delayed_work(&card->delayed_work);
if (platform->remove)
platform->remove(pdev);

if (platform->remove)
platform->remove(pdev);
if (codec_dev->remove)
codec_dev->remove(pdev);

if (codec_dev->remove)
codec_dev->remove(pdev);
for (i = 0; i < card->num_links; i++) {
struct snd_soc_dai *cpu_dai = card->dai_link[i].cpu_dai;
if (cpu_dai->remove)
cpu_dai->remove(pdev, cpu_dai);
}

for (i = 0; i < card->num_links; i++) {
struct snd_soc_dai *cpu_dai = card->dai_link[i].cpu_dai;
if (cpu_dai->remove)
cpu_dai->remove(pdev, cpu_dai);
if (card->remove)
card->remove(pdev);
}

if (card->remove)
card->remove(pdev);

snd_soc_unregister_card(card);

return 0;
Expand Down

0 comments on commit 043f6d3

Please sign in to comment.