Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248302
b: refs/heads/master
c: acb8303
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Warren authored and Mark Brown committed Apr 20, 2011
1 parent 25c5bd0 commit 1cff20e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 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: d9e3c4cc6801b03bce6dd31ba0e1a6acff8f8a1a
refs/heads/master: acb8303f15768c72796f3f95bb32a955333e0fbc
11 changes: 2 additions & 9 deletions trunk/sound/soc/tegra/tegra_wm8903.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,15 +417,12 @@ static __devinit int tegra_wm8903_driver_probe(struct platform_device *pdev)
if (ret) {
dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n",
ret);
goto err_clear_drvdata;
goto err_fini_utils;
}

return 0;

err_clear_drvdata:
snd_soc_card_set_drvdata(card, NULL);
platform_set_drvdata(pdev, NULL);
card->dev = NULL;
err_fini_utils:
tegra_asoc_utils_fini(&machine->util_data);
err_free_machine:
kfree(machine);
Expand All @@ -440,10 +437,6 @@ static int __devexit tegra_wm8903_driver_remove(struct platform_device *pdev)

snd_soc_unregister_card(card);

snd_soc_card_set_drvdata(card, NULL);
platform_set_drvdata(pdev, NULL);
card->dev = NULL;

tegra_asoc_utils_fini(&machine->util_data);

if (machine->gpio_requested & GPIO_EXT_MIC_EN)
Expand Down

0 comments on commit 1cff20e

Please sign in to comment.