ALSA: galaxy: Utilize the module_isa_driver macro
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Tue, 31 May 2016 15:56:41 +0000 (11:56 -0400)
committerTakashi Iwai <tiwai@suse.de>
Wed, 1 Jun 2016 05:35:52 +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/galaxy/galaxy.c

index 32278847884f018a90b20c8312bd203c78a97673..379abe2cbeb2317345c14c6fdca684129e35e5c7 100644 (file)
@@ -634,15 +634,4 @@ static struct isa_driver snd_galaxy_driver = {
        }
 };
 
-static int __init alsa_card_galaxy_init(void)
-{
-       return isa_register_driver(&snd_galaxy_driver, SNDRV_CARDS);
-}
-
-static void __exit alsa_card_galaxy_exit(void)
-{
-       isa_unregister_driver(&snd_galaxy_driver);
-}
-
-module_init(alsa_card_galaxy_init);
-module_exit(alsa_card_galaxy_exit);
+module_isa_driver(snd_galaxy_driver, SNDRV_CARDS);