summaryrefslogtreecommitdiffstats
path: root/sound/isa/galaxy
diff options
context:
space:
mode:
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>2016-05-31 17:56:41 +0200
committerTakashi Iwai <tiwai@suse.de>2016-06-01 07:35:52 +0200
commitab55c0500d68c1aff637d2ffa86c53cb7af891ca (patch)
tree1bfae4954df9f1d15bbc630329778727f69b5074 /sound/isa/galaxy
parentALSA: sc6000: Utilize the module_isa_driver macro (diff)
downloadlinux-ab55c0500d68c1aff637d2ffa86c53cb7af891ca.tar.xz
linux-ab55c0500d68c1aff637d2ffa86c53cb7af891ca.zip
ALSA: galaxy: 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/galaxy')
-rw-r--r--sound/isa/galaxy/galaxy.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/isa/galaxy/galaxy.c b/sound/isa/galaxy/galaxy.c
index 32278847884f..379abe2cbeb2 100644
--- a/sound/isa/galaxy/galaxy.c
+++ b/sound/isa/galaxy/galaxy.c
@@ -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);