diff options
author | William Breathitt Gray <vilhelm.gray@gmail.com> | 2016-05-31 18:55:48 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-06-01 08:35:49 +0300 |
commit | a99e8c625d38d47a434e954426315aac894deee9 (patch) | |
tree | 8d4991dbd52477a0d1e3bfff9daae74029c0f615 /sound | |
parent | ec5c08969928d3725b8e21a2ebb9e438392d099e (diff) | |
download | linux-a99e8c625d38d47a434e954426315aac894deee9.tar.xz |
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')
-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); |