From: William Breathitt Gray <vilhelm.gray@gmail.com>
To: mchehab@osg.samsung.com
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
William Breathitt Gray <vilhelm.gray@gmail.com>
Subject: [PATCH 4/6] radio: zoltrix: Utilize the module_isa_driver macro
Date: Mon, 18 Jul 2016 10:46:30 -0400 [thread overview]
Message-ID: <f2ba4f4c519bcb59b30e5d895ea7230c73bdbdd2.1468852798.git.vilhelm.gray@gmail.com> (raw)
In-Reply-To: <cover.1468852798.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>
---
drivers/media/radio/radio-zoltrix.c | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/drivers/media/radio/radio-zoltrix.c b/drivers/media/radio/radio-zoltrix.c
index 026e88e..597da26 100644
--- a/drivers/media/radio/radio-zoltrix.c
+++ b/drivers/media/radio/radio-zoltrix.c
@@ -233,16 +233,4 @@ static struct radio_isa_driver zoltrix_driver = {
.max_volume = 15,
};
-static int __init zoltrix_init(void)
-{
- return isa_register_driver(&zoltrix_driver.driver, ZOLTRIX_MAX);
-}
-
-static void __exit zoltrix_exit(void)
-{
- isa_unregister_driver(&zoltrix_driver.driver);
-}
-
-module_init(zoltrix_init);
-module_exit(zoltrix_exit);
-
+module_isa_driver(zoltrix_driver.driver, ZOLTRIX_MAX);
--
2.7.3
next prev parent reply other threads:[~2016-07-18 14:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-18 14:45 [PATCH 0/6] radio: " William Breathitt Gray
2016-07-18 14:45 ` [PATCH 1/6] radio: terratec: " William Breathitt Gray
2016-07-18 14:46 ` [PATCH 2/6] radio: rtrack2: " William Breathitt Gray
2016-07-18 14:46 ` [PATCH 3/6] radio: trust: " William Breathitt Gray
2016-07-18 14:46 ` William Breathitt Gray [this message]
2016-07-18 14:46 ` [PATCH 5/6] radio: aztech: " William Breathitt Gray
2016-07-18 14:47 ` [PATCH 6/6] radio: aimslab: " William Breathitt Gray
2016-07-20 10:37 ` [PATCH 0/6] radio: " Hans Verkuil
2016-07-20 12:45 ` William Breathitt Gray
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=f2ba4f4c519bcb59b30e5d895ea7230c73bdbdd2.1468852798.git.vilhelm.gray@gmail.com \
--to=vilhelm.gray@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@osg.samsung.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
Powered by JetHome