Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371807
b: refs/heads/master
c: da4f2f9
h: refs/heads/master
i:
  371805: a971632
  371803: 341e08f
  371799: f2e02a4
  371791: b89285f
  371775: a5f5b51
v: v3
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Mar 15, 2013
1 parent 86b6a91 commit 7fabd70
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 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: 61782e4f5eb593958582524aad9b14dc98b1b56c
refs/heads/master: da4f2f9e6b59d9236fec1d5cfc85dd3b5679d1b3
12 changes: 8 additions & 4 deletions trunk/sound/soc/sh/fsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1886,6 +1886,10 @@ static struct snd_soc_platform_driver fsi_soc_platform = {
.pcm_free = fsi_pcm_free,
};

static const struct snd_soc_component_driver fsi_soc_component = {
.name = "fsi",
};

/*
* platform function
*/
Expand Down Expand Up @@ -2046,10 +2050,10 @@ static int fsi_probe(struct platform_device *pdev)
goto exit_fsib;
}

ret = snd_soc_register_dais(&pdev->dev, fsi_soc_dai,
ARRAY_SIZE(fsi_soc_dai));
ret = snd_soc_register_component(&pdev->dev, &fsi_soc_component,
fsi_soc_dai, ARRAY_SIZE(fsi_soc_dai));
if (ret < 0) {
dev_err(&pdev->dev, "cannot snd dai register\n");
dev_err(&pdev->dev, "cannot snd component register\n");
goto exit_snd_soc;
}

Expand All @@ -2074,7 +2078,7 @@ static int fsi_remove(struct platform_device *pdev)

pm_runtime_disable(&pdev->dev);

snd_soc_unregister_dais(&pdev->dev, ARRAY_SIZE(fsi_soc_dai));
snd_soc_unregister_component(&pdev->dev);
snd_soc_unregister_platform(&pdev->dev);

fsi_stream_remove(&master->fsia);
Expand Down

0 comments on commit 7fabd70

Please sign in to comment.