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_ac97.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_ac97.c')
-rw-r--r-- | sound/soc/fsl/mpc5200_psc_ac97.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/sound/soc/fsl/mpc5200_psc_ac97.c b/sound/soc/fsl/mpc5200_psc_ac97.c index 2fb388f0150b..ffa00a2eb770 100644 --- a/sound/soc/fsl/mpc5200_psc_ac97.c +++ b/sound/soc/fsl/mpc5200_psc_ac97.c | |||
@@ -325,21 +325,7 @@ static struct platform_driver psc_ac97_driver = { | |||
325 | }, | 325 | }, |
326 | }; | 326 | }; |
327 | 327 | ||
328 | /* --------------------------------------------------------------------- | 328 | module_platform_driver(psc_ac97_driver); |
329 | * Module setup and teardown; simply register the of_platform driver | ||
330 | * for the PSC in AC97 mode. | ||
331 | */ | ||
332 | static int __init psc_ac97_init(void) | ||
333 | { | ||
334 | return platform_driver_register(&psc_ac97_driver); | ||
335 | } | ||
336 | module_init(psc_ac97_init); | ||
337 | |||
338 | static void __exit psc_ac97_exit(void) | ||
339 | { | ||
340 | platform_driver_unregister(&psc_ac97_driver); | ||
341 | } | ||
342 | module_exit(psc_ac97_exit); | ||
343 | 329 | ||
344 | MODULE_AUTHOR("Jon Smirl <jonsmirl@gmail.com>"); | 330 | MODULE_AUTHOR("Jon Smirl <jonsmirl@gmail.com>"); |
345 | MODULE_DESCRIPTION("mpc5200 AC97 module"); | 331 | MODULE_DESCRIPTION("mpc5200 AC97 module"); |