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 04/11] ALSA: cmi8328: Utilize the module_isa_driver macro
Date: Tue, 31 May 2016 11:55:12 -0400 [thread overview]
Message-ID: <a9309efe8e276205e38a98d4fc9d84d7178ca81a.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/cmi8328.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/sound/isa/cmi8328.c b/sound/isa/cmi8328.c
index 2c89d95..7874750 100644
--- a/sound/isa/cmi8328.c
+++ b/sound/isa/cmi8328.c
@@ -469,15 +469,4 @@ static struct isa_driver snd_cmi8328_driver = {
},
};
-static int __init alsa_card_cmi8328_init(void)
-{
- return isa_register_driver(&snd_cmi8328_driver, CMI8328_MAX);
-}
-
-static void __exit alsa_card_cmi8328_exit(void)
-{
- isa_unregister_driver(&snd_cmi8328_driver);
-}
-
-module_init(alsa_card_cmi8328_init)
-module_exit(alsa_card_cmi8328_exit)
+module_isa_driver(snd_cmi8328_driver, CMI8328_MAX);
--
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 ` William Breathitt Gray [this message]
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 ` [PATCH 07/11] ALSA: gusextreme: " William Breathitt Gray
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=a9309efe8e276205e38a98d4fc9d84d7178ca81a.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).