summaryrefslogtreecommitdiffstats
path: root/sound/isa
diff options
context:
space:
mode:
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>2016-05-31 11:56:52 -0400
committerTakashi Iwai <tiwai@suse.de>2016-06-01 07:35:52 +0200
commit1524c7191be24288ac097c7c3c1bc411f36c1fa4 (patch)
treee16f52bdbd3eb6bc6563b66d9d7dd30edcbbbe57 /sound/isa
parentab55c0500d68c1aff637d2ffa86c53cb7af891ca (diff)
downloadlinux-stable-1524c7191be24288ac097c7c3c1bc411f36c1fa4.tar.gz
linux-stable-1524c7191be24288ac097c7c3c1bc411f36c1fa4.tar.bz2
linux-stable-1524c7191be24288ac097c7c3c1bc411f36c1fa4.zip
ALSA: adlib: 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/adlib.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/isa/adlib.c b/sound/isa/adlib.c
index 120c524bb2a0..8d3060fd7ad7 100644
--- a/sound/isa/adlib.c
+++ b/sound/isa/adlib.c
@@ -112,15 +112,4 @@ static struct isa_driver snd_adlib_driver = {
}
};
-static int __init alsa_card_adlib_init(void)
-{
- return isa_register_driver(&snd_adlib_driver, SNDRV_CARDS);
-}
-
-static void __exit alsa_card_adlib_exit(void)
-{
- isa_unregister_driver(&snd_adlib_driver);
-}
-
-module_init(alsa_card_adlib_init);
-module_exit(alsa_card_adlib_exit);
+module_isa_driver(snd_adlib_driver, SNDRV_CARDS);