summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>2016-05-31 17:56:52 +0200
committerTakashi Iwai <tiwai@suse.de>2016-06-01 07:35:52 +0200
commit1524c7191be24288ac097c7c3c1bc411f36c1fa4 (patch)
treee16f52bdbd3eb6bc6563b66d9d7dd30edcbbbe57
parentALSA: galaxy: Utilize the module_isa_driver macro (diff)
downloadlinux-1524c7191be24288ac097c7c3c1bc411f36c1fa4.tar.xz
linux-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>
-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);