* [PATCH] (5/11) ep7211_ir dongle -- module owner
@ 2003-10-02 22:28 Stephen Hemminger
0 siblings, 0 replies; only message in thread
From: Stephen Hemminger @ 2003-10-02 22:28 UTC (permalink / raw)
To: Jean Tourrilhes, David S. Miller; +Cc: irda-users, netdev
Convert ep7211_ir dongle to use module owner.
diff -Nru a/drivers/net/irda/ep7211_ir.c b/drivers/net/irda/ep7211_ir.c
--- a/drivers/net/irda/ep7211_ir.c Thu Oct 2 15:10:34 2003
+++ b/drivers/net/irda/ep7211_ir.c Thu Oct 2 15:10:34 2003
@@ -24,12 +24,12 @@
static int ep7211_ir_reset(struct irda_task *task);
static struct dongle_reg dongle = {
- Q_NULL,
- IRDA_EP7211_IR,
- ep7211_ir_open,
- ep7211_ir_close,
- ep7211_ir_reset,
- ep7211_ir_change_speed,
+ .type = IRDA_EP7211_IR,
+ .open = ep7211_ir_open,
+ .close = ep7211_ir_close,
+ .reset = ep7211_ir_reset,
+ .change_speed = ep7211_ir_change_speed,
+ .owner = THIS_MODULE,
};
static void ep7211_ir_open(dongle_t *self, struct qos_info *qos)
@@ -47,8 +47,6 @@
UART (interrupt #14). */
restore_flags(flags);
-
- MOD_INC_USE_COUNT;
}
static void ep7211_ir_close(dongle_t *self)
@@ -66,8 +64,6 @@
reset them back to their original state. */
restore_flags(flags);
-
- MOD_DEC_USE_COUNT;
}
/*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-10-02 22:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-02 22:28 [PATCH] (5/11) ep7211_ir dongle -- module owner Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).