alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
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 02/11] ALSA: jazz16: Utilize the module_isa_driver macro
Date: Tue, 31 May 2016 11:54:50 -0400	[thread overview]
Message-ID: <01875b88c458ae8d0a189e8ef1db5046f3fda234.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/sb/jazz16.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/sound/isa/sb/jazz16.c b/sound/isa/sb/jazz16.c
index 6b4884d..4d90997 100644
--- a/sound/isa/sb/jazz16.c
+++ b/sound/isa/sb/jazz16.c
@@ -387,15 +387,4 @@ static struct isa_driver snd_jazz16_driver = {
 	},
 };
 
-static int __init alsa_card_jazz16_init(void)
-{
-	return isa_register_driver(&snd_jazz16_driver, SNDRV_CARDS);
-}
-
-static void __exit alsa_card_jazz16_exit(void)
-{
-	isa_unregister_driver(&snd_jazz16_driver);
-}
-
-module_init(alsa_card_jazz16_init)
-module_exit(alsa_card_jazz16_exit)
+module_isa_driver(snd_jazz16_driver, SNDRV_CARDS);
-- 
2.7.3

  parent reply	other threads:[~2016-05-31 15:54 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 ` William Breathitt Gray [this message]
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 ` [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=01875b88c458ae8d0a189e8ef1db5046f3fda234.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).