* [PATCH] (7/11) girbil dongle -- module owner
@ 2003-10-02 22:31 Stephen Hemminger
0 siblings, 0 replies; only message in thread
From: Stephen Hemminger @ 2003-10-02 22:31 UTC (permalink / raw)
To: Jean Tourrilhes, David S. Miller; +Cc: irda-users, netdev
Convert girbil dongle to use module owner instead of MOD_INC/DEC
diff -Nru a/drivers/net/irda/girbil.c b/drivers/net/irda/girbil.c
--- a/drivers/net/irda/girbil.c Thu Oct 2 15:10:39 2003
+++ b/drivers/net/irda/girbil.c Thu Oct 2 15:10:39 2003
@@ -63,12 +63,12 @@
#define GIRBIL_LOAD 0x51 /* Load the new baud rate value */
static struct dongle_reg dongle = {
- Q_NULL,
- IRDA_GIRBIL_DONGLE,
- girbil_open,
- girbil_close,
- girbil_reset,
- girbil_change_speed,
+ .type = IRDA_GIRBIL_DONGLE,
+ .open = girbil_open,
+ .close = girbil_close,
+ .reset = girbil_reset,
+ .change_speed = girbil_change_speed,
+ .owner = THIS_MODULE,
};
int __init girbil_init(void)
@@ -85,16 +85,12 @@
{
qos->baud_rate.bits &= IR_9600|IR_19200|IR_38400|IR_57600|IR_115200;
qos->min_turn_time.bits = 0x03;
-
- MOD_INC_USE_COUNT;
}
static void girbil_close(dongle_t *self)
{
/* Power off dongle */
self->set_dtr_rts(self->dev, FALSE, FALSE);
-
- MOD_DEC_USE_COUNT;
}
/*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-10-02 22:31 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:31 [PATCH] (7/11) girbil 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).