diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2013-03-21 06:34:59 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-26 17:57:30 -0400 |
commit | cd5e4d0b2f7065eaef56725ebcd6bf3278d33b20 (patch) | |
tree | ea31f76ad960d1743f6e9fc352cfe6fe92992db6 | |
parent | 425f3708949a54aa2f01537eeb6fae33f937279b (diff) |
ASoC: switch over to use snd_soc_register_component() on s6000 i2s
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | sound/soc/s6000/s6000-i2s.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sound/soc/s6000/s6000-i2s.c b/sound/soc/s6000/s6000-i2s.c index fee4d477a49c..73bb99f0109a 100644 --- a/sound/soc/s6000/s6000-i2s.c +++ b/sound/soc/s6000/s6000-i2s.c | |||
@@ -436,6 +436,10 @@ static struct snd_soc_dai_driver s6000_i2s_dai = { | |||
436 | .ops = &s6000_i2s_dai_ops, | 436 | .ops = &s6000_i2s_dai_ops, |
437 | }; | 437 | }; |
438 | 438 | ||
439 | static const struct snd_soc_component_driver s6000_i2s_component = { | ||
440 | .name = "s6000-i2s", | ||
441 | }; | ||
442 | |||
439 | static int s6000_i2s_probe(struct platform_device *pdev) | 443 | static int s6000_i2s_probe(struct platform_device *pdev) |
440 | { | 444 | { |
441 | struct s6000_i2s_dev *dev; | 445 | struct s6000_i2s_dev *dev; |
@@ -543,7 +547,8 @@ static int s6000_i2s_probe(struct platform_device *pdev) | |||
543 | S6_I2S_INT_UNDERRUN | | 547 | S6_I2S_INT_UNDERRUN | |
544 | S6_I2S_INT_OVERRUN); | 548 | S6_I2S_INT_OVERRUN); |
545 | 549 | ||
546 | ret = snd_soc_register_dai(&pdev->dev, &s6000_i2s_dai); | 550 | ret = snd_soc_register_component(&pdev->dev, &s6000_i2s_component, |
551 | &s6000_i2s_dai, 1); | ||
547 | if (ret) | 552 | if (ret) |
548 | goto err_release_dev; | 553 | goto err_release_dev; |
549 | 554 | ||
@@ -572,7 +577,7 @@ static void s6000_i2s_remove(struct platform_device *pdev) | |||
572 | struct resource *region; | 577 | struct resource *region; |
573 | void __iomem *mmio = dev->scbbase; | 578 | void __iomem *mmio = dev->scbbase; |
574 | 579 | ||
575 | snd_soc_unregister_dai(&pdev->dev); | 580 | snd_soc_unregister_component(&pdev->dev); |
576 | 581 | ||
577 | s6000_i2s_stop_channel(dev, 0); | 582 | s6000_i2s_stop_channel(dev, 0); |
578 | s6000_i2s_stop_channel(dev, 1); | 583 | s6000_i2s_stop_channel(dev, 1); |