ALSA: jazz16: Utilize the module_isa_driver macro
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Tue, 31 May 2016 15:54:50 +0000 (11:54 -0400)
committerTakashi Iwai <tiwai@suse.de>
Wed, 1 Jun 2016 05:35:46 +0000 (07:35 +0200)
This driver does not do anything special in module init/exit. This patch
eliminates the module init/exit boilerplate code by utilizing the
module_isa_driver macro.

Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/sb/jazz16.c

index 6b4884d052a56097c38feea055f94ede24103f70..4d909971eedbb5b8ee458ec46d08162b2302bb44 100644 (file)
@@ -387,15 +387,4 @@ static struct isa_driver snd_jazz16_driver = {
        },
 };
 
-static int __init alsa_card_jazz16_init(void)
-{
-       return isa_register_driver(&snd_jazz16_driver, SNDRV_CARDS);
-}
-
-static void __exit alsa_card_jazz16_exit(void)
-{
-       isa_unregister_driver(&snd_jazz16_driver);
-}
-
-module_init(alsa_card_jazz16_init)
-module_exit(alsa_card_jazz16_exit)
+module_isa_driver(snd_jazz16_driver, SNDRV_CARDS);