diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-23 14:25:29 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-23 14:25:29 -0400 |
commit | 5561f17f2629cdacf5bc43e0f839ca6434db2c20 (patch) | |
tree | c0e1acfcc969c81d5d072ee3b512a934d99a7ec2 /sound/soc/sh/siu_dai.c | |
parent | 423a5e0fd46de6bd92c52b2ef136856929eeb649 (diff) | |
parent | d486fea6babfe3ff0c382c9e4baf18f535fcee7d (diff) |
Merge remote-tracking branch 'asoc/topic/davinci' into asoc-next
Diffstat (limited to 'sound/soc/sh/siu_dai.c')
-rw-r--r-- | sound/soc/sh/siu_dai.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sound/soc/sh/siu_dai.c b/sound/soc/sh/siu_dai.c index 34facdc9e4ac..9dc24ffa892a 100644 --- a/sound/soc/sh/siu_dai.c +++ b/sound/soc/sh/siu_dai.c | |||
@@ -726,6 +726,10 @@ static struct snd_soc_dai_driver siu_i2s_dai = { | |||
726 | .ops = &siu_dai_ops, | 726 | .ops = &siu_dai_ops, |
727 | }; | 727 | }; |
728 | 728 | ||
729 | static const struct snd_soc_component_driver siu_i2s_component = { | ||
730 | .name = "siu-i2s", | ||
731 | }; | ||
732 | |||
729 | static int siu_probe(struct platform_device *pdev) | 733 | static int siu_probe(struct platform_device *pdev) |
730 | { | 734 | { |
731 | const struct firmware *fw_entry; | 735 | const struct firmware *fw_entry; |
@@ -783,7 +787,8 @@ static int siu_probe(struct platform_device *pdev) | |||
783 | dev_set_drvdata(&pdev->dev, info); | 787 | dev_set_drvdata(&pdev->dev, info); |
784 | 788 | ||
785 | /* register using ARRAY version so we can keep dai name */ | 789 | /* register using ARRAY version so we can keep dai name */ |
786 | ret = snd_soc_register_dais(&pdev->dev, &siu_i2s_dai, 1); | 790 | ret = snd_soc_register_component(&pdev->dev, &siu_i2s_component, |
791 | &siu_i2s_dai, 1); | ||
787 | if (ret < 0) | 792 | if (ret < 0) |
788 | goto edaiinit; | 793 | goto edaiinit; |
789 | 794 | ||
@@ -796,7 +801,7 @@ static int siu_probe(struct platform_device *pdev) | |||
796 | return ret; | 801 | return ret; |
797 | 802 | ||
798 | esocregp: | 803 | esocregp: |
799 | snd_soc_unregister_dai(&pdev->dev); | 804 | snd_soc_unregister_component(&pdev->dev); |
800 | edaiinit: | 805 | edaiinit: |
801 | iounmap(info->reg); | 806 | iounmap(info->reg); |
802 | emapreg: | 807 | emapreg: |
@@ -823,7 +828,7 @@ static int siu_remove(struct platform_device *pdev) | |||
823 | pm_runtime_disable(&pdev->dev); | 828 | pm_runtime_disable(&pdev->dev); |
824 | 829 | ||
825 | snd_soc_unregister_platform(&pdev->dev); | 830 | snd_soc_unregister_platform(&pdev->dev); |
826 | snd_soc_unregister_dai(&pdev->dev); | 831 | snd_soc_unregister_component(&pdev->dev); |
827 | 832 | ||
828 | iounmap(info->reg); | 833 | iounmap(info->reg); |
829 | iounmap(info->yram); | 834 | iounmap(info->yram); |