summaryrefslogtreecommitdiff
path: root/sound/soc/jz4740/jz4740-i2s.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-24 10:13:03 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-24 10:45:19 +0000
commitc32986e66bd72c02f9ecef490769248c7fcb5145 (patch)
tree118a82cbbebae72132b3d658640a9b24abbf0852 /sound/soc/jz4740/jz4740-i2s.c
parent7a24b2ba59fda5e6d1367d5d3cb0d4d0f811713b (diff)
downloadkernel-c32986e66bd72c02f9ecef490769248c7fcb5145.tar.gz
ASoC: Convert jz4740 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/jz4740/jz4740-i2s.c')
-rw-r--r--sound/soc/jz4740/jz4740-i2s.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/jz4740/jz4740-i2s.c b/sound/soc/jz4740/jz4740-i2s.c
index 91255c6e1ee7..a5af7c42e62b 100644
--- a/sound/soc/jz4740/jz4740-i2s.c
+++ b/sound/soc/jz4740/jz4740-i2s.c
@@ -519,17 +519,7 @@ static struct platform_driver jz4740_i2s_driver = {
},
};
-static int __init jz4740_i2s_init(void)
-{
- return platform_driver_register(&jz4740_i2s_driver);
-}
-module_init(jz4740_i2s_init);
-
-static void __exit jz4740_i2s_exit(void)
-{
- platform_driver_unregister(&jz4740_i2s_driver);
-}
-module_exit(jz4740_i2s_exit);
+module_platform_driver(jz4740_i2s_driver);
MODULE_AUTHOR("Lars-Peter Clausen, <lars@metafoo.de>");
MODULE_DESCRIPTION("Ingenic JZ4740 SoC I2S driver");