diff options
Diffstat (limited to 'sound/soc/omap/omap-pcm.c')
-rw-r--r-- | sound/soc/omap/omap-pcm.c | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c index 07b8b7bc9d20..8d809f8509c8 100644 --- a/sound/soc/omap/omap-pcm.c +++ b/sound/soc/omap/omap-pcm.c | |||
@@ -232,31 +232,12 @@ static struct snd_soc_platform_driver omap_soc_platform = { | |||
232 | .pcm_free = omap_pcm_free_dma_buffers, | 232 | .pcm_free = omap_pcm_free_dma_buffers, |
233 | }; | 233 | }; |
234 | 234 | ||
235 | static int omap_pcm_probe(struct platform_device *pdev) | 235 | int omap_pcm_platform_register(struct device *dev) |
236 | { | 236 | { |
237 | return snd_soc_register_platform(&pdev->dev, | 237 | return devm_snd_soc_register_platform(dev, &omap_soc_platform); |
238 | &omap_soc_platform); | ||
239 | } | 238 | } |
240 | 239 | EXPORT_SYMBOL_GPL(omap_pcm_platform_register); | |
241 | static int omap_pcm_remove(struct platform_device *pdev) | ||
242 | { | ||
243 | snd_soc_unregister_platform(&pdev->dev); | ||
244 | return 0; | ||
245 | } | ||
246 | |||
247 | static struct platform_driver omap_pcm_driver = { | ||
248 | .driver = { | ||
249 | .name = "omap-pcm-audio", | ||
250 | .owner = THIS_MODULE, | ||
251 | }, | ||
252 | |||
253 | .probe = omap_pcm_probe, | ||
254 | .remove = omap_pcm_remove, | ||
255 | }; | ||
256 | |||
257 | module_platform_driver(omap_pcm_driver); | ||
258 | 240 | ||
259 | MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@bitmer.com>"); | 241 | MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@bitmer.com>"); |
260 | MODULE_DESCRIPTION("OMAP PCM DMA module"); | 242 | MODULE_DESCRIPTION("OMAP PCM DMA module"); |
261 | MODULE_LICENSE("GPL"); | 243 | MODULE_LICENSE("GPL"); |
262 | MODULE_ALIAS("platform:omap-pcm-audio"); | ||