Avoid using generic init/empty functions. Signed-off-by: Fabian Frederick <f...@skynet.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 <95e...@alumni.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