aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/au1x/dma.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-24 21:06:59 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-25 08:15:16 -0500
commit8a124f9cc9bafc40f5650e63a84ba1ff98a36ea0 (patch)
tree1698eade3f3682741fad3df339147a30bc568645 /sound/soc/au1x/dma.c
parentb31c9056e400ddf10ec9691c6fada2fba1709330 (diff)
ASoC: Convert au1x directory to module_platform_driver
Factor out some boilerplate code. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/au1x/dma.c')
-rw-r--r--sound/soc/au1x/dma.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/soc/au1x/dma.c b/sound/soc/au1x/dma.c
index 177f7137a9c8..dc4dae48aed9 100644
--- a/sound/soc/au1x/dma.c
+++ b/sound/soc/au1x/dma.c
@@ -359,18 +359,7 @@ static struct platform_driver alchemy_pcmdma_driver = {
359 .remove = __devexit_p(alchemy_pcm_drvremove), 359 .remove = __devexit_p(alchemy_pcm_drvremove),
360}; 360};
361 361
362static int __init alchemy_pcmdma_load(void) 362module_platform_driver(alchemy_pcmdma_driver);
363{
364 return platform_driver_register(&alchemy_pcmdma_driver);
365}
366
367static void __exit alchemy_pcmdma_unload(void)
368{
369 platform_driver_unregister(&alchemy_pcmdma_driver);
370}
371
372module_init(alchemy_pcmdma_load);
373module_exit(alchemy_pcmdma_unload);
374 363
375MODULE_LICENSE("GPL"); 364MODULE_LICENSE("GPL");
376MODULE_DESCRIPTION("Au1000/Au1500/Au1100 Audio DMA driver"); 365MODULE_DESCRIPTION("Au1000/Au1500/Au1100 Audio DMA driver");