diff options
Diffstat (limited to 'sound/soc/mid-x86')
-rw-r--r-- | sound/soc/mid-x86/sst_platform.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sound/soc/mid-x86/sst_platform.c b/sound/soc/mid-x86/sst_platform.c index 968656ceb39e..392fc0b8f5b8 100644 --- a/sound/soc/mid-x86/sst_platform.c +++ b/sound/soc/mid-x86/sst_platform.c | |||
@@ -165,6 +165,10 @@ static struct snd_soc_dai_driver sst_platform_dai[] = { | |||
165 | }, | 165 | }, |
166 | }; | 166 | }; |
167 | 167 | ||
168 | static const struct snd_soc_component_driver sst_component = { | ||
169 | .name = "sst", | ||
170 | }; | ||
171 | |||
168 | /* helper functions */ | 172 | /* helper functions */ |
169 | static inline void sst_set_stream_status(struct sst_runtime_stream *stream, | 173 | static inline void sst_set_stream_status(struct sst_runtime_stream *stream, |
170 | int state) | 174 | int state) |
@@ -693,7 +697,7 @@ static int sst_platform_probe(struct platform_device *pdev) | |||
693 | return ret; | 697 | return ret; |
694 | } | 698 | } |
695 | 699 | ||
696 | ret = snd_soc_register_dais(&pdev->dev, | 700 | ret = snd_soc_register_component(&pdev->dev, &sst_component, |
697 | sst_platform_dai, ARRAY_SIZE(sst_platform_dai)); | 701 | sst_platform_dai, ARRAY_SIZE(sst_platform_dai)); |
698 | if (ret) { | 702 | if (ret) { |
699 | pr_err("registering cpu dais failed\n"); | 703 | pr_err("registering cpu dais failed\n"); |
@@ -705,7 +709,7 @@ static int sst_platform_probe(struct platform_device *pdev) | |||
705 | static int sst_platform_remove(struct platform_device *pdev) | 709 | static int sst_platform_remove(struct platform_device *pdev) |
706 | { | 710 | { |
707 | 711 | ||
708 | snd_soc_unregister_dais(&pdev->dev, ARRAY_SIZE(sst_platform_dai)); | 712 | snd_soc_unregister_component(&pdev->dev); |
709 | snd_soc_unregister_platform(&pdev->dev); | 713 | snd_soc_unregister_platform(&pdev->dev); |
710 | pr_debug("sst_platform_remove success\n"); | 714 | pr_debug("sst_platform_remove success\n"); |
711 | return 0; | 715 | return 0; |