From ee18f6314fa16376d53c29ecf9704011f2ce8180 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Thu, 24 Nov 2011 12:07:55 +0800 Subject: ASoC: Convert ep93xx directory to module_platform_driver Factor out some boilerplate code. Signed-off-by: Axel Lin Acked-by: Mika Westerberg Acked-by: Alexander Sverdlin Signed-off-by: Mark Brown --- sound/soc/ep93xx/ep93xx-ac97.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'sound/soc/ep93xx/ep93xx-ac97.c') diff --git a/sound/soc/ep93xx/ep93xx-ac97.c b/sound/soc/ep93xx/ep93xx-ac97.c index c423d12a26cf..0678637abd66 100644 --- a/sound/soc/ep93xx/ep93xx-ac97.c +++ b/sound/soc/ep93xx/ep93xx-ac97.c @@ -449,17 +449,7 @@ static struct platform_driver ep93xx_ac97_driver = { }, }; -static int __init ep93xx_ac97_init(void) -{ - return platform_driver_register(&ep93xx_ac97_driver); -} -module_init(ep93xx_ac97_init); - -static void __exit ep93xx_ac97_exit(void) -{ - platform_driver_unregister(&ep93xx_ac97_driver); -} -module_exit(ep93xx_ac97_exit); +module_platform_driver(ep93xx_ac97_driver); MODULE_DESCRIPTION("EP93xx AC97 ASoC Driver"); MODULE_AUTHOR("Mika Westerberg "); -- cgit v1.2.1