diff options
author | William Breathitt Gray <vilhelm.gray@gmail.com> | 2016-05-31 17:55:48 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-06-01 07:35:49 +0200 |
commit | a99e8c625d38d47a434e954426315aac894deee9 (patch) | |
tree | 8d4991dbd52477a0d1e3bfff9daae74029c0f615 /sound/isa | |
parent | ALSA: cs4231: Utilize the module_isa_driver macro (diff) | |
download | linux-a99e8c625d38d47a434e954426315aac894deee9.tar.xz linux-a99e8c625d38d47a434e954426315aac894deee9.zip |
ALSA: gusmax: Utilize the module_isa_driver macro
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>
Diffstat (limited to 'sound/isa')
-rw-r--r-- | sound/isa/gus/gusmax.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/isa/gus/gusmax.c b/sound/isa/gus/gusmax.c index 8216e8d8f017..dd88c9d33492 100644 --- a/sound/isa/gus/gusmax.c +++ b/sound/isa/gus/gusmax.c @@ -370,15 +370,4 @@ static struct isa_driver snd_gusmax_driver = { }, }; -static int __init alsa_card_gusmax_init(void) -{ - return isa_register_driver(&snd_gusmax_driver, SNDRV_CARDS); -} - -static void __exit alsa_card_gusmax_exit(void) -{ - isa_unregister_driver(&snd_gusmax_driver); -} - -module_init(alsa_card_gusmax_init) -module_exit(alsa_card_gusmax_exit) +module_isa_driver(snd_gusmax_driver, SNDRV_CARDS); |