diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-24 21:10:55 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-28 12:23:21 -0500 |
commit | ba0a7e024d2a0ccdb887cda149f3e11f1ce27101 (patch) | |
tree | 0098d694f54671fb33f4254e224dc6be13ef81d6 /sound/soc/fsl/mpc5200_psc_i2s.c | |
parent | 6524c8e3e6525891d6085c7fb0f7fe5ce18e5b50 (diff) |
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/mpc5200_psc_i2s.c')
-rw-r--r-- | sound/soc/fsl/mpc5200_psc_i2s.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/sound/soc/fsl/mpc5200_psc_i2s.c b/sound/soc/fsl/mpc5200_psc_i2s.c index e77a1f20d4d2..7b530327553a 100644 --- a/sound/soc/fsl/mpc5200_psc_i2s.c +++ b/sound/soc/fsl/mpc5200_psc_i2s.c | |||
@@ -222,21 +222,7 @@ static struct platform_driver psc_i2s_driver = { | |||
222 | }, | 222 | }, |
223 | }; | 223 | }; |
224 | 224 | ||
225 | /* --------------------------------------------------------------------- | 225 | module_platform_driver(psc_i2s_driver); |
226 | * Module setup and teardown; simply register the of_platform driver | ||
227 | * for the PSC in I2S mode. | ||
228 | */ | ||
229 | static int __init psc_i2s_init(void) | ||
230 | { | ||
231 | return platform_driver_register(&psc_i2s_driver); | ||
232 | } | ||
233 | module_init(psc_i2s_init); | ||
234 | |||
235 | static void __exit psc_i2s_exit(void) | ||
236 | { | ||
237 | platform_driver_unregister(&psc_i2s_driver); | ||
238 | } | ||
239 | module_exit(psc_i2s_exit); | ||
240 | 226 | ||
241 | MODULE_AUTHOR("Grant Likely <grant.likely@secretlab.ca>"); | 227 | MODULE_AUTHOR("Grant Likely <grant.likely@secretlab.ca>"); |
242 | MODULE_DESCRIPTION("Freescale MPC5200 PSC in I2S mode ASoC Driver"); | 228 | MODULE_DESCRIPTION("Freescale MPC5200 PSC in I2S mode ASoC Driver"); |