diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-25 06:06:59 +0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-25 17:15:16 +0400 |
commit | 8a124f9cc9bafc40f5650e63a84ba1ff98a36ea0 (patch) | |
tree | 1698eade3f3682741fad3df339147a30bc568645 /sound/soc/au1x/i2sc.c | |
parent | b31c9056e400ddf10ec9691c6fada2fba1709330 (diff) | |
download | linux-8a124f9cc9bafc40f5650e63a84ba1ff98a36ea0.tar.xz |
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/i2sc.c')
-rw-r--r-- | sound/soc/au1x/i2sc.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/soc/au1x/i2sc.c b/sound/soc/au1x/i2sc.c index 6bcf48f5884c..cb53ad87d0a9 100644 --- a/sound/soc/au1x/i2sc.c +++ b/sound/soc/au1x/i2sc.c @@ -331,18 +331,7 @@ static struct platform_driver au1xi2s_driver = { .remove = __devexit_p(au1xi2s_drvremove), }; -static int __init au1xi2s_load(void) -{ - return platform_driver_register(&au1xi2s_driver); -} - -static void __exit au1xi2s_unload(void) -{ - platform_driver_unregister(&au1xi2s_driver); -} - -module_init(au1xi2s_load); -module_exit(au1xi2s_unload); +module_platform_driver(au1xi2s_driver); MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("Au1000/1500/1100 I2S ASoC driver"); |