summaryrefslogtreecommitdiffstats
path: root/sound/soc/au1x/psc-i2s.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-25 03:06:59 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-25 14:15:16 +0100
commit8a124f9cc9bafc40f5650e63a84ba1ff98a36ea0 (patch)
tree1698eade3f3682741fad3df339147a30bc568645 /sound/soc/au1x/psc-i2s.c
parentASoC: Convert atmel directory to module_platform_driver (diff)
downloadlinux-8a124f9cc9bafc40f5650e63a84ba1ff98a36ea0.tar.xz
linux-8a124f9cc9bafc40f5650e63a84ba1ff98a36ea0.zip
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/psc-i2s.c')
-rw-r--r--sound/soc/au1x/psc-i2s.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/soc/au1x/psc-i2s.c b/sound/soc/au1x/psc-i2s.c
index f7714d50bdaf..5c1dc8a141ab 100644
--- a/sound/soc/au1x/psc-i2s.c
+++ b/sound/soc/au1x/psc-i2s.c
@@ -435,18 +435,7 @@ static struct platform_driver au1xpsc_i2s_driver = {
.remove = __devexit_p(au1xpsc_i2s_drvremove),
};
-static int __init au1xpsc_i2s_load(void)
-{
- return platform_driver_register(&au1xpsc_i2s_driver);
-}
-
-static void __exit au1xpsc_i2s_unload(void)
-{
- platform_driver_unregister(&au1xpsc_i2s_driver);
-}
-
-module_init(au1xpsc_i2s_load);
-module_exit(au1xpsc_i2s_unload);
+module_platform_driver(au1xpsc_i2s_driver);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Au12x0/Au1550 PSC I2S ALSA ASoC audio driver");