aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/cirrus/ep93xx-pcm.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sound/soc/cirrus/ep93xx-pcm.c b/sound/soc/cirrus/ep93xx-pcm.c
index cfe517e68009..fdb8b8feb4ed 100644
--- a/sound/soc/cirrus/ep93xx-pcm.c
+++ b/sound/soc/cirrus/ep93xx-pcm.c
@@ -78,19 +78,13 @@ static const struct snd_dmaengine_pcm_config ep93xx_dmaengine_pcm_config = {
78 78
79static int ep93xx_soc_platform_probe(struct platform_device *pdev) 79static int ep93xx_soc_platform_probe(struct platform_device *pdev)
80{ 80{
81 return snd_dmaengine_pcm_register(&pdev->dev, 81 return devm_snd_dmaengine_pcm_register(&pdev->dev,
82 &ep93xx_dmaengine_pcm_config, 82 &ep93xx_dmaengine_pcm_config,
83 SND_DMAENGINE_PCM_FLAG_NO_RESIDUE | 83 SND_DMAENGINE_PCM_FLAG_NO_RESIDUE |
84 SND_DMAENGINE_PCM_FLAG_NO_DT | 84 SND_DMAENGINE_PCM_FLAG_NO_DT |
85 SND_DMAENGINE_PCM_FLAG_COMPAT); 85 SND_DMAENGINE_PCM_FLAG_COMPAT);
86} 86}
87 87
88static int ep93xx_soc_platform_remove(struct platform_device *pdev)
89{
90 snd_dmaengine_pcm_unregister(&pdev->dev);
91 return 0;
92}
93
94static struct platform_driver ep93xx_pcm_driver = { 88static struct platform_driver ep93xx_pcm_driver = {
95 .driver = { 89 .driver = {
96 .name = "ep93xx-pcm-audio", 90 .name = "ep93xx-pcm-audio",
@@ -98,7 +92,6 @@ static struct platform_driver ep93xx_pcm_driver = {
98 }, 92 },
99 93
100 .probe = ep93xx_soc_platform_probe, 94 .probe = ep93xx_soc_platform_probe,
101 .remove = ep93xx_soc_platform_remove,
102}; 95};
103 96
104module_platform_driver(ep93xx_pcm_driver); 97module_platform_driver(ep93xx_pcm_driver);