diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-24 11:43:09 +0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-24 10:45:20 +0000 |
commit | 41b1022509733bb3347b15d670f3c1609ddf928f (patch) | |
tree | 696152762f49fd592846f12fd0302405f1b92799 /sound/soc/kirkwood/kirkwood-dma.c | |
parent | d0efa6a279e53df0f695382a5a6958e8a9863bff (diff) | |
download | op-kernel-dev-41b1022509733bb3347b15d670f3c1609ddf928f.zip op-kernel-dev-41b1022509733bb3347b15d670f3c1609ddf928f.tar.gz |
ASoC: Convert kirkwood 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/kirkwood/kirkwood-dma.c')
-rw-r--r-- | sound/soc/kirkwood/kirkwood-dma.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/kirkwood/kirkwood-dma.c b/sound/soc/kirkwood/kirkwood-dma.c index cd33de1..2104382 100644 --- a/sound/soc/kirkwood/kirkwood-dma.c +++ b/sound/soc/kirkwood/kirkwood-dma.c @@ -388,17 +388,7 @@ static struct platform_driver kirkwood_pcm_driver = { .remove = __devexit_p(kirkwood_soc_platform_remove), }; -static int __init kirkwood_pcm_init(void) -{ - return platform_driver_register(&kirkwood_pcm_driver); -} -module_init(kirkwood_pcm_init); - -static void __exit kirkwood_pcm_exit(void) -{ - platform_driver_unregister(&kirkwood_pcm_driver); -} -module_exit(kirkwood_pcm_exit); +module_platform_driver(kirkwood_pcm_driver); MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>"); MODULE_DESCRIPTION("Marvell Kirkwood Audio DMA module"); |