summaryrefslogtreecommitdiff
path: root/sound/soc/kirkwood/kirkwood-i2s.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-24 07:43:09 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-24 14:45:20 +0400
commit41b1022509733bb3347b15d670f3c1609ddf928f (patch)
tree696152762f49fd592846f12fd0302405f1b92799 /sound/soc/kirkwood/kirkwood-i2s.c
parentd0efa6a279e53df0f695382a5a6958e8a9863bff (diff)
downloadlinux-41b1022509733bb3347b15d670f3c1609ddf928f.tar.xz
ASoC: Convert kirkwood 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/kirkwood/kirkwood-i2s.c')
-rw-r--r--sound/soc/kirkwood/kirkwood-i2s.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/kirkwood/kirkwood-i2s.c b/sound/soc/kirkwood/kirkwood-i2s.c
index 2b212dcb9ac7..f6bb21156876 100644
--- a/sound/soc/kirkwood/kirkwood-i2s.c
+++ b/sound/soc/kirkwood/kirkwood-i2s.c
@@ -483,17 +483,7 @@ static struct platform_driver kirkwood_i2s_driver = {
},
};
-static int __init kirkwood_i2s_init(void)
-{
- return platform_driver_register(&kirkwood_i2s_driver);
-}
-module_init(kirkwood_i2s_init);
-
-static void __exit kirkwood_i2s_exit(void)
-{
- platform_driver_unregister(&kirkwood_i2s_driver);
-}
-module_exit(kirkwood_i2s_exit);
+module_platform_driver(kirkwood_i2s_driver);
/* Module information */
MODULE_AUTHOR("Arnaud Patard, <arnaud.patard@rtp-net.org>");