Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371859
b: refs/heads/master
c: b00e2fa
h: refs/heads/master
i:
  371857: 1da923d
  371855: 4297157
v: v3
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Mar 26, 2013
1 parent 27ee04c commit 2eaace7
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: a413a3c282c143da11b7d6dfb859885e5f8b48be
refs/heads/master: b00e2fa1ab1ff4c4ada4324866516c21c7ce5057
9 changes: 7 additions & 2 deletions trunk/sound/soc/txx9/txx9aclc-ac97.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ static struct snd_soc_dai_driver txx9aclc_ac97_dai = {
},
};

static const struct snd_soc_component_driver txx9aclc_ac97_component = {
.name = "txx9aclc-ac97",
};

static int txx9aclc_ac97_dev_probe(struct platform_device *pdev)
{
struct txx9aclc_plat_drvdata *drvdata;
Expand Down Expand Up @@ -205,12 +209,13 @@ static int txx9aclc_ac97_dev_probe(struct platform_device *pdev)
if (err < 0)
return err;

return snd_soc_register_dai(&pdev->dev, &txx9aclc_ac97_dai);
return snd_soc_register_component(&pdev->dev, &txx9aclc_ac97_component,
&txx9aclc_ac97_dai, 1);
}

static int txx9aclc_ac97_dev_remove(struct platform_device *pdev)
{
snd_soc_unregister_dai(&pdev->dev);
snd_soc_unregister_component(&pdev->dev);
return 0;
}

Expand Down

0 comments on commit 2eaace7

Please sign in to comment.