summaryrefslogtreecommitdiffstats
path: root/sound/soc/atmel/atmel_ssc_dai.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-25 03:05:45 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-25 14:15:01 +0100
commitb31c9056e400ddf10ec9691c6fada2fba1709330 (patch)
tree8fab1b1f3198fcc0acb41b0b7378146324fd6ee3 /sound/soc/atmel/atmel_ssc_dai.c
parentASoC: Use devm_kzalloc() in wm5100 (diff)
downloadlinux-b31c9056e400ddf10ec9691c6fada2fba1709330.tar.xz
linux-b31c9056e400ddf10ec9691c6fada2fba1709330.zip
ASoC: Convert atmel directory to module_platform_driver
Factor out some boilerplate code. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/atmel/atmel_ssc_dai.c')
-rw-r--r--sound/soc/atmel/atmel_ssc_dai.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c
index a67fc9b7dbe7..354341ec0f42 100644
--- a/sound/soc/atmel/atmel_ssc_dai.c
+++ b/sound/soc/atmel/atmel_ssc_dai.c
@@ -859,17 +859,7 @@ int atmel_ssc_set_audio(int ssc_id)
}
EXPORT_SYMBOL_GPL(atmel_ssc_set_audio);
-static int __init snd_atmel_ssc_init(void)
-{
- return platform_driver_register(&asoc_ssc_driver);
-}
-module_init(snd_atmel_ssc_init);
-
-static void __exit snd_atmel_ssc_exit(void)
-{
- platform_driver_unregister(&asoc_ssc_driver);
-}
-module_exit(snd_atmel_ssc_exit);
+module_platform_driver(asoc_ssc_driver);
/* Module information */
MODULE_AUTHOR("Sedji Gaouaou, sedji.gaouaou@atmel.com, www.atmel.com");