ASoC: Convert Samsung directory to module_platform_driver
[linux-2.6-block.git] / sound / soc / samsung / s3c24xx_uda134x.c
index 548c6ac6e7b06bdc5e9da816836a6bf3a90b7b6a..62b69fb6a08518821a7848c73c1035e325a20017 100644 (file)
@@ -343,19 +343,7 @@ static struct platform_driver s3c24xx_uda134x_driver = {
        },
 };
 
-static int __init s3c24xx_uda134x_init(void)
-{
-       return platform_driver_register(&s3c24xx_uda134x_driver);
-}
-
-static void __exit s3c24xx_uda134x_exit(void)
-{
-       platform_driver_unregister(&s3c24xx_uda134x_driver);
-}
-
-
-module_init(s3c24xx_uda134x_init);
-module_exit(s3c24xx_uda134x_exit);
+module_platform_driver(s3c24xx_uda134x_driver);
 
 MODULE_AUTHOR("Zoltan Devai, Christian Pellegrin <chripell@evolware.org>");
 MODULE_DESCRIPTION("S3C24XX_UDA134X ALSA SoC audio driver");