summaryrefslogtreecommitdiffstats
path: root/sound/soc/txx9/txx9aclc-ac97.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-25 10:16:10 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-25 13:15:30 +0000
commit33d316cd8b39fda7106332e5554f5959dc04b4dc (patch)
treea27a6cf7e98ee8f2d0ae3493a7d2da00664e708f /sound/soc/txx9/txx9aclc-ac97.c
parentcb5e87387cfa8172faca36682e2df069b006efdf (diff)
downloadlinux-33d316cd8b39fda7106332e5554f5959dc04b4dc.tar.gz
linux-33d316cd8b39fda7106332e5554f5959dc04b4dc.tar.bz2
linux-33d316cd8b39fda7106332e5554f5959dc04b4dc.zip
ASoC: Convert txx9 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/txx9/txx9aclc-ac97.c')
-rw-r--r--sound/soc/txx9/txx9aclc-ac97.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/soc/txx9/txx9aclc-ac97.c b/sound/soc/txx9/txx9aclc-ac97.c
index a4e3f5501847..28db4ca997ca 100644
--- a/sound/soc/txx9/txx9aclc-ac97.c
+++ b/sound/soc/txx9/txx9aclc-ac97.c
@@ -223,18 +223,7 @@ static struct platform_driver txx9aclc_ac97_driver = {
},
};
-static int __init txx9aclc_ac97_init(void)
-{
- return platform_driver_register(&txx9aclc_ac97_driver);
-}
-
-static void __exit txx9aclc_ac97_exit(void)
-{
- platform_driver_unregister(&txx9aclc_ac97_driver);
-}
-
-module_init(txx9aclc_ac97_init);
-module_exit(txx9aclc_ac97_exit);
+module_platform_driver(txx9aclc_ac97_driver);
MODULE_AUTHOR("Atsushi Nemoto <anemo@mba.ocn.ne.jp>");
MODULE_DESCRIPTION("TXx9 ACLC AC97 driver");