mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
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 1/6] radio: terratec: Utilize the module_isa_driver macro
Date: Mon, 18 Jul 2016 10:45:35 -0400	[thread overview]
Message-ID: <7cf0d0cbfcaf6cb1e0538755ebec0096ac054f83.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-terratec.c | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/drivers/media/radio/radio-terratec.c b/drivers/media/radio/radio-terratec.c
index be10a80..621bbb2 100644
--- a/drivers/media/radio/radio-terratec.c
+++ b/drivers/media/radio/radio-terratec.c
@@ -155,16 +155,4 @@ static struct radio_isa_driver terratec_driver = {
 	.max_volume = 10,
 };
 
-static int __init terratec_init(void)
-{
-	return isa_register_driver(&terratec_driver.driver, 1);
-}
-
-static void __exit terratec_exit(void)
-{
-	isa_unregister_driver(&terratec_driver.driver);
-}
-
-module_init(terratec_init);
-module_exit(terratec_exit);
-
+module_isa_driver(terratec_driver.driver, 1);
-- 
2.7.3

  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 ` William Breathitt Gray [this message]
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 ` [PATCH 4/6] radio: zoltrix: " William Breathitt Gray
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=7cf0d0cbfcaf6cb1e0538755ebec0096ac054f83.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