diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-24 21:06:59 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-25 08:15:16 -0500 |
commit | 8a124f9cc9bafc40f5650e63a84ba1ff98a36ea0 (patch) | |
tree | 1698eade3f3682741fad3df339147a30bc568645 /sound/soc/au1x/dbdma2.c | |
parent | b31c9056e400ddf10ec9691c6fada2fba1709330 (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/dbdma2.c')
-rw-r--r-- | sound/soc/au1x/dbdma2.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/soc/au1x/dbdma2.c b/sound/soc/au1x/dbdma2.c index d7d04e26eee5..09699de9b337 100644 --- a/sound/soc/au1x/dbdma2.c +++ b/sound/soc/au1x/dbdma2.c | |||
@@ -384,18 +384,7 @@ static struct platform_driver au1xpsc_pcm_driver = { | |||
384 | .remove = __devexit_p(au1xpsc_pcm_drvremove), | 384 | .remove = __devexit_p(au1xpsc_pcm_drvremove), |
385 | }; | 385 | }; |
386 | 386 | ||
387 | static int __init au1xpsc_audio_dbdma_load(void) | 387 | module_platform_driver(au1xpsc_pcm_driver); |
388 | { | ||
389 | return platform_driver_register(&au1xpsc_pcm_driver); | ||
390 | } | ||
391 | |||
392 | static void __exit au1xpsc_audio_dbdma_unload(void) | ||
393 | { | ||
394 | platform_driver_unregister(&au1xpsc_pcm_driver); | ||
395 | } | ||
396 | |||
397 | module_init(au1xpsc_audio_dbdma_load); | ||
398 | module_exit(au1xpsc_audio_dbdma_unload); | ||
399 | 388 | ||
400 | MODULE_LICENSE("GPL"); | 389 | MODULE_LICENSE("GPL"); |
401 | MODULE_DESCRIPTION("Au12x0/Au1550 PSC Audio DMA driver"); | 390 | MODULE_DESCRIPTION("Au12x0/Au1550 PSC Audio DMA driver"); |