diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-24 21:09:27 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-25 08:15:31 -0500 |
commit | f9b8a51493d69841bab3c5e85f335b6af0c8e5c2 (patch) | |
tree | c89ae86223aa618ad0f486cb1ca7bbc4e7b9ceb1 /sound/soc/davinci/davinci-mcasp.c | |
parent | 33d316cd8b39fda7106332e5554f5959dc04b4dc (diff) |
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-mcasp.c')
-rw-r--r-- | sound/soc/davinci/davinci-mcasp.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index 03cea9d39c4b..2152ff5c04f6 100644 --- a/sound/soc/davinci/davinci-mcasp.c +++ b/sound/soc/davinci/davinci-mcasp.c | |||
@@ -991,17 +991,7 @@ static struct platform_driver davinci_mcasp_driver = { | |||
991 | }, | 991 | }, |
992 | }; | 992 | }; |
993 | 993 | ||
994 | static int __init davinci_mcasp_init(void) | 994 | module_platform_driver(davinci_mcasp_driver); |
995 | { | ||
996 | return platform_driver_register(&davinci_mcasp_driver); | ||
997 | } | ||
998 | module_init(davinci_mcasp_init); | ||
999 | |||
1000 | static void __exit davinci_mcasp_exit(void) | ||
1001 | { | ||
1002 | platform_driver_unregister(&davinci_mcasp_driver); | ||
1003 | } | ||
1004 | module_exit(davinci_mcasp_exit); | ||
1005 | 995 | ||
1006 | MODULE_AUTHOR("Steve Chen"); | 996 | MODULE_AUTHOR("Steve Chen"); |
1007 | MODULE_DESCRIPTION("TI DAVINCI McASP SoC Interface"); | 997 | MODULE_DESCRIPTION("TI DAVINCI McASP SoC Interface"); |