Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371833
b: refs/heads/master
c: 026240b
h: refs/heads/master
i:
  371831: 5b1f8df
v: v3
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Mar 26, 2013
1 parent 66d7fd2 commit 9a3e573
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: b1c36861315ce37c2fee8c1c90433068866a8871
refs/heads/master: 026240bb155bb8f83b9425812f52661fcbaa0629
11 changes: 8 additions & 3 deletions trunk/sound/soc/mxs/mxs-saif.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,10 @@ static struct snd_soc_dai_driver mxs_saif_dai = {
.ops = &mxs_saif_dai_ops,
};

static const struct snd_soc_component_driver mxs_saif_component = {
.name = "mxs-saif",
};

static irqreturn_t mxs_saif_irq(int irq, void *dev_id)
{
struct mxs_saif *saif = dev_id;
Expand Down Expand Up @@ -763,7 +767,8 @@ static int mxs_saif_probe(struct platform_device *pdev)

platform_set_drvdata(pdev, saif);

ret = snd_soc_register_dai(&pdev->dev, &mxs_saif_dai);
ret = snd_soc_register_component(&pdev->dev, &mxs_saif_component,
&mxs_saif_dai, 1);
if (ret) {
dev_err(&pdev->dev, "register DAI failed\n");
return ret;
Expand All @@ -778,15 +783,15 @@ static int mxs_saif_probe(struct platform_device *pdev)
return 0;

failed_pdev_alloc:
snd_soc_unregister_dai(&pdev->dev);
snd_soc_unregister_component(&pdev->dev);

return ret;
}

static int mxs_saif_remove(struct platform_device *pdev)
{
mxs_pcm_platform_unregister(&pdev->dev);
snd_soc_unregister_dai(&pdev->dev);
snd_soc_unregister_component(&pdev->dev);

return 0;
}
Expand Down

0 comments on commit 9a3e573

Please sign in to comment.