From: William Breathitt Gray <vilhelm.gray@gmail.com>
To: perex@perex.cz, tiwai@suse.com
Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org,
William Breathitt Gray <vilhelm.gray@gmail.com>
Subject: [PATCH 07/11] ALSA: gusextreme: Utilize the module_isa_driver macro
Date: Tue, 31 May 2016 11:55:58 -0400 [thread overview]
Message-ID: <17133725c1f50aaddc924df8db466d04f202498c.1464709438.git.vilhelm.gray@gmail.com> (raw)
In-Reply-To: <cover.1464709438.git.vilhelm.gray@gmail.com>
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>
---
sound/isa/gus/gusextreme.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/sound/isa/gus/gusextreme.c b/sound/isa/gus/gusextreme.c
index 693d95f..77ac2fd 100644
--- a/sound/isa/gus/gusextreme.c
+++ b/sound/isa/gus/gusextreme.c
@@ -358,15 +358,4 @@ static struct isa_driver snd_gusextreme_driver = {
}
};
-static int __init alsa_card_gusextreme_init(void)
-{
- return isa_register_driver(&snd_gusextreme_driver, SNDRV_CARDS);
-}
-
-static void __exit alsa_card_gusextreme_exit(void)
-{
- isa_unregister_driver(&snd_gusextreme_driver);
-}
-
-module_init(alsa_card_gusextreme_init);
-module_exit(alsa_card_gusextreme_exit);
+module_isa_driver(snd_gusextreme_driver, SNDRV_CARDS);
--
2.7.3
next prev parent reply other threads:[~2016-05-31 15:55 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-31 15:54 [PATCH 00/11] ALSA: Utilize the module_isa_driver macro William Breathitt Gray
2016-05-31 15:54 ` [PATCH 01/11] ALSA: sb8: " William Breathitt Gray
2016-05-31 15:54 ` [PATCH 02/11] ALSA: jazz16: " William Breathitt Gray
2016-05-31 15:55 ` [PATCH 03/11] ALSA: ad1848: " William Breathitt Gray
2016-05-31 15:55 ` [PATCH 04/11] ALSA: cmi8328: " William Breathitt Gray
2016-05-31 15:55 ` [PATCH 05/11] ALSA: cs4231: " William Breathitt Gray
2016-05-31 15:55 ` [PATCH 06/11] ALSA: gusmax: " William Breathitt Gray
2016-05-31 15:55 ` William Breathitt Gray [this message]
2016-05-31 15:56 ` [PATCH 08/11] ALSA: gusclassic: " William Breathitt Gray
2016-05-31 15:56 ` [PATCH 09/11] ALSA: sc6000: " William Breathitt Gray
2016-05-31 15:56 ` [PATCH 10/11] ALSA: galaxy: " William Breathitt Gray
2016-05-31 15:56 ` [PATCH 11/11] ALSA: adlib: " William Breathitt Gray
2016-06-01 5:36 ` [PATCH 00/11] ALSA: " Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17133725c1f50aaddc924df8db466d04f202498c.1464709438.git.vilhelm.gray@gmail.com \
--to=vilhelm.gray@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).