lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1468434589-18610-9-git-send-email-fabf@skynet.be>
Date:	Wed, 13 Jul 2016 20:29:49 +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 8/8 net-next] irda: ma600-sir: use module_sirdev_driver() helper

Avoid using generic init/empty functions.

Signed-off-by: Fabian Frederick <fabf@...net.be>
---
 drivers/net/irda/ma600-sir.c | 17 ++---------------
 1 file changed, 2 insertions(+), 15 deletions(-)

diff --git a/drivers/net/irda/ma600-sir.c b/drivers/net/irda/ma600-sir.c
index a764817..a8c4c29 100644
--- a/drivers/net/irda/ma600-sir.c
+++ b/drivers/net/irda/ma600-sir.c
@@ -62,17 +62,6 @@ static struct dongle_driver ma600 = {
 	.set_speed      = ma600_change_speed,
 };
 
-
-static int __init ma600_sir_init(void)
-{
-	return irda_register_dongle(&ma600);
-}
-
-static void __exit ma600_sir_cleanup(void)
-{
-	irda_unregister_dongle(&ma600);
-}
-
 /*
 	Power on:
 		(0) Clear RTS and DTR for 1 second
@@ -243,11 +232,9 @@ static int ma600_reset(struct sir_dev *dev)
 	return 0;
 }
 
+module_sirdev_driver(ma600);
+
 MODULE_AUTHOR("Leung <95Etwl@...mni.ee.ust.hk> http://www.engsvr.ust/~eetwl95");
 MODULE_DESCRIPTION("MA600 dongle driver version 0.1");
 MODULE_LICENSE("GPL");
 MODULE_ALIAS("irda-dongle-11"); /* IRDA_MA600_DONGLE */
-		
-module_init(ma600_sir_init);
-module_exit(ma600_sir_cleanup);
-
-- 
2.8.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ