summaryrefslogtreecommitdiffstats
path: root/sound/soc/davinci/davinci-vcif.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-25 10:09:27 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-25 13:15:31 +0000
commitf9b8a51493d69841bab3c5e85f335b6af0c8e5c2 (patch)
treec89ae86223aa618ad0f486cb1ca7bbc4e7b9ceb1 /sound/soc/davinci/davinci-vcif.c
parent33d316cd8b39fda7106332e5554f5959dc04b4dc (diff)
downloadop-kernel-dev-f9b8a51493d69841bab3c5e85f335b6af0c8e5c2.zip
op-kernel-dev-f9b8a51493d69841bab3c5e85f335b6af0c8e5c2.tar.gz
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-vcif.c')
-rw-r--r--sound/soc/davinci/davinci-vcif.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/davinci/davinci-vcif.c b/sound/soc/davinci/davinci-vcif.c
index dae96b8..70ce10c 100644
--- a/sound/soc/davinci/davinci-vcif.c
+++ b/sound/soc/davinci/davinci-vcif.c
@@ -265,17 +265,7 @@ static struct platform_driver davinci_vcif_driver = {
},
};
-static int __init davinci_vcif_init(void)
-{
- return platform_driver_probe(&davinci_vcif_driver, davinci_vcif_probe);
-}
-module_init(davinci_vcif_init);
-
-static void __exit davinci_vcif_exit(void)
-{
- platform_driver_unregister(&davinci_vcif_driver);
-}
-module_exit(davinci_vcif_exit);
+module_platform_driver(davinci_vcif_driver);
MODULE_AUTHOR("Miguel Aguilar");
MODULE_DESCRIPTION("Texas Instruments DaVinci ASoC Voice Codec Interface");
OpenPOWER on IntegriCloud