Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371853
b: refs/heads/master
c: a582d44
h: refs/heads/master
i:
  371851: a5e3172
v: v3
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Mar 26, 2013
1 parent c693c58 commit 1c4d314
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 73d86d9808ce4885d515a05454a26d5a8533c01a
refs/heads/master: a582d44b1352176df012f512124c4395bb60eaf5
9 changes: 7 additions & 2 deletions trunk/sound/soc/spear/spdif_out.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,10 @@ static struct snd_soc_dai_driver spdif_out_dai = {
.ops = &spdif_out_dai_ops,
};

static const struct snd_soc_component_driver spdif_out_component = {
.name = "spdif-out",
};

static int spdif_out_probe(struct platform_device *pdev)
{
struct spdif_out_dev *host;
Expand Down Expand Up @@ -314,7 +318,8 @@ static int spdif_out_probe(struct platform_device *pdev)

dev_set_drvdata(&pdev->dev, host);

ret = snd_soc_register_dai(&pdev->dev, &spdif_out_dai);
ret = snd_soc_register_component(&pdev->dev, &spdif_out_component,
&spdif_out_dai, 1);
if (ret != 0) {
clk_put(host->clk);
return ret;
Expand All @@ -327,7 +332,7 @@ static int spdif_out_remove(struct platform_device *pdev)
{
struct spdif_out_dev *host = dev_get_drvdata(&pdev->dev);

snd_soc_unregister_dai(&pdev->dev);
snd_soc_unregister_component(&pdev->dev);
dev_set_drvdata(&pdev->dev, NULL);

clk_put(host->clk);
Expand Down

0 comments on commit 1c4d314

Please sign in to comment.