[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1468434589-18610-3-git-send-email-fabf@skynet.be>
Date: Wed, 13 Jul 2016 20:29:43 +0200
From: Fabian Frederick <fabf@...net.be>
To: Samuel Ortiz <samuel@...tiz.org>
Cc: linux-kernel@...r.kernel.org, irda-users@...ts.sourceforge.net,
davem@...emloft.net, fabf@...net.be
Subject: [PATCH 2/8 net-next] irda: actl200l-sir: use module_sirdev_driver() helper
Avoid using generic init/exit functions.
Signed-off-by: Fabian Frederick <fabf@...net.be>
---
drivers/net/irda/act200l-sir.c | 15 ++-------------
1 file changed, 2 insertions(+), 13 deletions(-)
diff --git a/drivers/net/irda/act200l-sir.c b/drivers/net/irda/act200l-sir.c
index e891751..bb58c6e 100644
--- a/drivers/net/irda/act200l-sir.c
+++ b/drivers/net/irda/act200l-sir.c
@@ -93,16 +93,6 @@ static struct dongle_driver act200l = {
.set_speed = act200l_change_speed,
};
-static int __init act200l_sir_init(void)
-{
- return irda_register_dongle(&act200l);
-}
-
-static void __exit act200l_sir_cleanup(void)
-{
- irda_unregister_dongle(&act200l);
-}
-
static int act200l_open(struct sir_dev *dev)
{
struct qos_info *qos = &dev->qos;
@@ -241,10 +231,9 @@ static int act200l_reset(struct sir_dev *dev)
return (delay > 0) ? delay : ret;
}
+module_sirdev_driver(act200l);
+
MODULE_AUTHOR("SHIMIZU Takuya <tshimizu@....so-net.ne.jp>");
MODULE_DESCRIPTION("ACTiSYS ACT-IR200L dongle driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("irda-dongle-10"); /* IRDA_ACT200L_DONGLE */
-
-module_init(act200l_sir_init);
-module_exit(act200l_sir_cleanup);
--
2.8.1
Powered by blists - more mailing lists