diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-25 10:10:55 +0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-28 17:23:21 +0000 |
commit | ba0a7e024d2a0ccdb887cda149f3e11f1ce27101 (patch) | |
tree | 0098d694f54671fb33f4254e224dc6be13ef81d6 /sound/soc/fsl/fsl_ssi.c | |
parent | 6524c8e3e6525891d6085c7fb0f7fe5ce18e5b50 (diff) | |
download | linux-ba0a7e024d2a0ccdb887cda149f3e11f1ce27101.tar.gz linux-ba0a7e024d2a0ccdb887cda149f3e11f1ce27101.tar.bz2 linux-ba0a7e024d2a0ccdb887cda149f3e11f1ce27101.zip |
ASoC: Convert fsl directory to module_platform_driver
Factor out some boilerplate code.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/fsl/fsl_ssi.c')
-rw-r--r-- | sound/soc/fsl/fsl_ssi.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index 17d857e55efe..3e066966d878 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c @@ -793,20 +793,7 @@ static struct platform_driver fsl_ssi_driver = { .remove = fsl_ssi_remove, }; -static int __init fsl_ssi_init(void) -{ - printk(KERN_INFO "Freescale Synchronous Serial Interface (SSI) ASoC Driver\n"); - - return platform_driver_register(&fsl_ssi_driver); -} - -static void __exit fsl_ssi_exit(void) -{ - platform_driver_unregister(&fsl_ssi_driver); -} - -module_init(fsl_ssi_init); -module_exit(fsl_ssi_exit); +module_platform_driver(fsl_ssi_driver); MODULE_AUTHOR("Timur Tabi <timur@freescale.com>"); MODULE_DESCRIPTION("Freescale Synchronous Serial Interface (SSI) ASoC Driver"); |