diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2014-04-16 08:46:30 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-18 13:00:47 -0400 |
commit | 5601174ff89f174b36437f7125785552e9c0b0c0 (patch) | |
tree | 3a61da063b369e79682e7655b61e3970a3013f42 /sound/soc/omap | |
parent | b30ca4bdde773534daa5e04da946a00cabe44bb5 (diff) |
ASoC: omap-pcm: Drop the platform driver init code
The omap-pcm no longer need to be a platform driver since all cpu_dai will
bind the platform to it's own device which we can use.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/omap')
-rw-r--r-- | sound/soc/omap/omap-pcm.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c index c3711b582d5f..8d809f8509c8 100644 --- a/sound/soc/omap/omap-pcm.c +++ b/sound/soc/omap/omap-pcm.c | |||
@@ -238,31 +238,6 @@ int omap_pcm_platform_register(struct device *dev) | |||
238 | } | 238 | } |
239 | EXPORT_SYMBOL_GPL(omap_pcm_platform_register); | 239 | EXPORT_SYMBOL_GPL(omap_pcm_platform_register); |
240 | 240 | ||
241 | static int omap_pcm_probe(struct platform_device *pdev) | ||
242 | { | ||
243 | return snd_soc_register_platform(&pdev->dev, | ||
244 | &omap_soc_platform); | ||
245 | } | ||
246 | |||
247 | static int omap_pcm_remove(struct platform_device *pdev) | ||
248 | { | ||
249 | snd_soc_unregister_platform(&pdev->dev); | ||
250 | return 0; | ||
251 | } | ||
252 | |||
253 | static struct platform_driver omap_pcm_driver = { | ||
254 | .driver = { | ||
255 | .name = "omap-pcm-audio", | ||
256 | .owner = THIS_MODULE, | ||
257 | }, | ||
258 | |||
259 | .probe = omap_pcm_probe, | ||
260 | .remove = omap_pcm_remove, | ||
261 | }; | ||
262 | |||
263 | module_platform_driver(omap_pcm_driver); | ||
264 | |||
265 | MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@bitmer.com>"); | 241 | MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@bitmer.com>"); |
266 | MODULE_DESCRIPTION("OMAP PCM DMA module"); | 242 | MODULE_DESCRIPTION("OMAP PCM DMA module"); |
267 | MODULE_LICENSE("GPL"); | 243 | MODULE_LICENSE("GPL"); |
268 | MODULE_ALIAS("platform:omap-pcm-audio"); | ||