summaryrefslogtreecommitdiffstats
path: root/sound/soc/samsung/dma.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-23 15:20:13 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-25 13:03:03 +0000
commite00c3f555f1f404b38d44bcfe19db674a92c809a (patch)
treebe5593a830a07919b0bdc759424f031138c0b0cc /sound/soc/samsung/dma.c
parent29515d62db425796d82e2e2d9209a44b9e324ff4 (diff)
downloadlinux-e00c3f555f1f404b38d44bcfe19db674a92c809a.tar.bz2
ASoC: Convert Samsung directory to module_platform_driver
Saves some boilerplate code. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Sangbeom Kim <sbkim73@samsung.com>
Diffstat (limited to 'sound/soc/samsung/dma.c')
-rw-r--r--sound/soc/samsung/dma.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/samsung/dma.c b/sound/soc/samsung/dma.c
index a68b26441784..797c3d5e79e5 100644
--- a/sound/soc/samsung/dma.c
+++ b/sound/soc/samsung/dma.c
@@ -458,17 +458,7 @@ static struct platform_driver asoc_dma_driver = {
.remove = __devexit_p(samsung_asoc_platform_remove),
};
-static int __init samsung_asoc_init(void)
-{
- return platform_driver_register(&asoc_dma_driver);
-}
-module_init(samsung_asoc_init);
-
-static void __exit samsung_asoc_exit(void)
-{
- platform_driver_unregister(&asoc_dma_driver);
-}
-module_exit(samsung_asoc_exit);
+module_platform_driver(asoc_dma_driver);
MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>");
MODULE_DESCRIPTION("Samsung ASoC DMA Driver");