diff options
Diffstat (limited to 'sound/soc/ux500')
-rw-r--r-- | sound/soc/ux500/ux500_msp_dai.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sound/soc/ux500/ux500_msp_dai.c b/sound/soc/ux500/ux500_msp_dai.c index 94a3e5705aaa..f1e8a5ecb00b 100644 --- a/sound/soc/ux500/ux500_msp_dai.c +++ b/sound/soc/ux500/ux500_msp_dai.c | |||
@@ -768,6 +768,11 @@ static struct snd_soc_dai_driver ux500_msp_dai_drv[UX500_NBR_OF_DAI] = { | |||
768 | }, | 768 | }, |
769 | }; | 769 | }; |
770 | 770 | ||
771 | static const struct snd_soc_component_driver ux500_msp_component = { | ||
772 | .name = "ux500-msp", | ||
773 | }; | ||
774 | |||
775 | |||
771 | static int ux500_msp_drv_probe(struct platform_device *pdev) | 776 | static int ux500_msp_drv_probe(struct platform_device *pdev) |
772 | { | 777 | { |
773 | struct ux500_msp_i2s_drvdata *drvdata; | 778 | struct ux500_msp_i2s_drvdata *drvdata; |
@@ -825,8 +830,8 @@ static int ux500_msp_drv_probe(struct platform_device *pdev) | |||
825 | } | 830 | } |
826 | dev_set_drvdata(&pdev->dev, drvdata); | 831 | dev_set_drvdata(&pdev->dev, drvdata); |
827 | 832 | ||
828 | ret = snd_soc_register_dai(&pdev->dev, | 833 | ret = snd_soc_register_component(&pdev->dev, &ux500_msp_component, |
829 | &ux500_msp_dai_drv[drvdata->msp->id]); | 834 | &ux500_msp_dai_drv[drvdata->msp->id], 1); |
830 | if (ret < 0) { | 835 | if (ret < 0) { |
831 | dev_err(&pdev->dev, "Error: %s: Failed to register MSP%d!\n", | 836 | dev_err(&pdev->dev, "Error: %s: Failed to register MSP%d!\n", |
832 | __func__, drvdata->msp->id); | 837 | __func__, drvdata->msp->id); |
@@ -844,7 +849,7 @@ static int ux500_msp_drv_probe(struct platform_device *pdev) | |||
844 | return 0; | 849 | return 0; |
845 | 850 | ||
846 | err_reg_plat: | 851 | err_reg_plat: |
847 | snd_soc_unregister_dais(&pdev->dev, ARRAY_SIZE(ux500_msp_dai_drv)); | 852 | snd_soc_unregister_component(&pdev->dev); |
848 | err_init_msp: | 853 | err_init_msp: |
849 | clk_put(drvdata->clk); | 854 | clk_put(drvdata->clk); |
850 | err_clk: | 855 | err_clk: |
@@ -861,7 +866,7 @@ static int ux500_msp_drv_remove(struct platform_device *pdev) | |||
861 | 866 | ||
862 | ux500_pcm_unregister_platform(pdev); | 867 | ux500_pcm_unregister_platform(pdev); |
863 | 868 | ||
864 | snd_soc_unregister_dais(&pdev->dev, ARRAY_SIZE(ux500_msp_dai_drv)); | 869 | snd_soc_unregister_component(&pdev->dev); |
865 | 870 | ||
866 | devm_regulator_put(drvdata->reg_vape); | 871 | devm_regulator_put(drvdata->reg_vape); |
867 | prcmu_qos_remove_requirement(PRCMU_QOS_APE_OPP, "ux500_msp_i2s"); | 872 | prcmu_qos_remove_requirement(PRCMU_QOS_APE_OPP, "ux500_msp_i2s"); |