ASoC: Convert CODEC drivers to module_platform_driver
[deliverable/linux.git] / sound / soc / codecs / wm9712.c
index fd1812704af824bb755093d362d54968717e016d..4ce73f59df2071336862e07a9b467fdc40d1fa1f 100644 (file)
@@ -694,17 +694,7 @@ static struct platform_driver wm9712_codec_driver = {
        .remove = __devexit_p(wm9712_remove),
 };
 
-static int __init wm9712_init(void)
-{
-       return platform_driver_register(&wm9712_codec_driver);
-}
-module_init(wm9712_init);
-
-static void __exit wm9712_exit(void)
-{
-       platform_driver_unregister(&wm9712_codec_driver);
-}
-module_exit(wm9712_exit);
+module_platform_driver(wm9712_codec_driver);
 
 MODULE_DESCRIPTION("ASoC WM9711/WM9712 driver");
 MODULE_AUTHOR("Liam Girdwood");
This page took 0.030664 seconds and 5 git commands to generate.