summaryrefslogtreecommitdiff
path: root/sound/soc/au1x/db1200.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-25 10:06:59 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-25 13:15:16 +0000
commit8a124f9cc9bafc40f5650e63a84ba1ff98a36ea0 (patch)
tree1698eade3f3682741fad3df339147a30bc568645 /sound/soc/au1x/db1200.c
parentb31c9056e400ddf10ec9691c6fada2fba1709330 (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/db1200.c')
-rw-r--r--sound/soc/au1x/db1200.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/soc/au1x/db1200.c b/sound/soc/au1x/db1200.c
index 289312c14b99..80733331733f 100644
--- a/sound/soc/au1x/db1200.c
+++ b/sound/soc/au1x/db1200.c
@@ -133,18 +133,7 @@ static struct platform_driver db1200_audio_driver = {
.remove = __devexit_p(db1200_audio_remove),
};
-static int __init db1200_audio_load(void)
-{
- return platform_driver_register(&db1200_audio_driver);
-}
-
-static void __exit db1200_audio_unload(void)
-{
- platform_driver_unregister(&db1200_audio_driver);
-}
-
-module_init(db1200_audio_load);
-module_exit(db1200_audio_unload);
+module_platform_driver(db1200_audio_driver);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("DB1200 ASoC audio support");