ALSA: au1x00: use module_platform_driver()
authorChristoph Jaeger <christophjaeger@linux.com>
Wed, 9 Apr 2014 07:42:32 +0000 (09:42 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 9 Apr 2014 08:02:14 +0000 (10:02 +0200)
Eliminate boilerplate code by using module_platform_driver().

Signed-off-by: Christoph Jaeger <christophjaeger@linux.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/mips/au1x00.c

index a7cc49e960685d97f223accb9916f478a1e22e43..d10ef7675268c53e7b8276004d2b87bd857d9233 100644 (file)
@@ -725,15 +725,4 @@ struct platform_driver au1000_ac97c_driver = {
        .remove         = au1000_ac97_remove,
 };
 
-static int __init au1000_ac97_load(void)
-{
-       return platform_driver_register(&au1000_ac97c_driver);
-}
-
-static void __exit au1000_ac97_unload(void)
-{
-       platform_driver_unregister(&au1000_ac97c_driver);
-}
-
-module_init(au1000_ac97_load);
-module_exit(au1000_ac97_unload);
+module_platform_driver(au1000_ac97c_driver);