diff options
Diffstat (limited to 'sound/soc/omap/omap-mcbsp.c')
-rw-r--r-- | sound/soc/omap/omap-mcbsp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c index efe2cd699b77..bd3ef2a88be0 100644 --- a/sound/soc/omap/omap-mcbsp.c +++ b/sound/soc/omap/omap-mcbsp.c | |||
@@ -805,8 +805,9 @@ static int asoc_mcbsp_probe(struct platform_device *pdev) | |||
805 | if (ret) | 805 | if (ret) |
806 | return ret; | 806 | return ret; |
807 | 807 | ||
808 | ret = snd_soc_register_component(&pdev->dev, &omap_mcbsp_component, | 808 | ret = devm_snd_soc_register_component(&pdev->dev, |
809 | &omap_mcbsp_dai, 1); | 809 | &omap_mcbsp_component, |
810 | &omap_mcbsp_dai, 1); | ||
810 | if (ret) | 811 | if (ret) |
811 | return ret; | 812 | return ret; |
812 | 813 | ||
@@ -817,8 +818,6 @@ static int asoc_mcbsp_remove(struct platform_device *pdev) | |||
817 | { | 818 | { |
818 | struct omap_mcbsp *mcbsp = platform_get_drvdata(pdev); | 819 | struct omap_mcbsp *mcbsp = platform_get_drvdata(pdev); |
819 | 820 | ||
820 | snd_soc_unregister_component(&pdev->dev); | ||
821 | |||
822 | if (mcbsp->pdata->ops && mcbsp->pdata->ops->free) | 821 | if (mcbsp->pdata->ops && mcbsp->pdata->ops->free) |
823 | mcbsp->pdata->ops->free(mcbsp->id); | 822 | mcbsp->pdata->ops->free(mcbsp->id); |
824 | 823 | ||