diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-25 03:09:27 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-25 14:15:31 +0100 |
commit | f9b8a51493d69841bab3c5e85f335b6af0c8e5c2 (patch) | |
tree | c89ae86223aa618ad0f486cb1ca7bbc4e7b9ceb1 /sound/soc/davinci/davinci-i2s.c | |
parent | ASoC: Convert txx9 directory to module_platform_driver (diff) | |
download | linux-f9b8a51493d69841bab3c5e85f335b6af0c8e5c2.tar.xz linux-f9b8a51493d69841bab3c5e85f335b6af0c8e5c2.zip |
ASoC: Convert davinci 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/davinci/davinci-i2s.c')
-rw-r--r-- | sound/soc/davinci/davinci-i2s.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/davinci/davinci-i2s.c b/sound/soc/davinci/davinci-i2s.c index f3d5ae1078be..ec187100367e 100644 --- a/sound/soc/davinci/davinci-i2s.c +++ b/sound/soc/davinci/davinci-i2s.c @@ -774,17 +774,7 @@ static struct platform_driver davinci_mcbsp_driver = { }, }; -static int __init davinci_i2s_init(void) -{ - return platform_driver_register(&davinci_mcbsp_driver); -} -module_init(davinci_i2s_init); - -static void __exit davinci_i2s_exit(void) -{ - platform_driver_unregister(&davinci_mcbsp_driver); -} -module_exit(davinci_i2s_exit); +module_platform_driver(davinci_mcbsp_driver); MODULE_AUTHOR("Vladimir Barinov"); MODULE_DESCRIPTION("TI DAVINCI I2S (McBSP) SoC Interface"); |