* [PATCH] (11/11) old_belkin dongle module conversion
@ 2003-10-02 22:35 Stephen Hemminger
0 siblings, 0 replies; only message in thread
From: Stephen Hemminger @ 2003-10-02 22:35 UTC (permalink / raw)
To: Jean Tourrilhes, David S. Miller; +Cc: irda-users, netdev
Change old_belkin dongle to new module owner support.
diff -Nru a/drivers/net/irda/old_belkin.c b/drivers/net/irda/old_belkin.c
--- a/drivers/net/irda/old_belkin.c Thu Oct 2 15:10:48 2003
+++ b/drivers/net/irda/old_belkin.c Thu Oct 2 15:10:48 2003
@@ -74,12 +74,12 @@
/* static __u32 baud_rates[] = { 9600 }; */
static struct dongle_reg dongle = {
- Q_NULL,
- IRDA_OLD_BELKIN_DONGLE,
- old_belkin_open,
- old_belkin_close,
- old_belkin_reset,
- old_belkin_change_speed,
+ .type = IRDA_OLD_BELKIN_DONGLE,
+ .open = old_belkin_open,
+ .close = old_belkin_close,
+ .reset = old_belkin_reset,
+ .change_speed = old_belkin_change_speed,
+ .owner = THIS_MODULE,
};
int __init old_belkin_init(void)
@@ -98,16 +98,12 @@
qos->baud_rate.bits &= IR_9600;
/* Needs at least 10 ms (totally wild guess, can do probably better) */
qos->min_turn_time.bits = 0x01;
-
- MOD_INC_USE_COUNT;
}
static void old_belkin_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:35 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:35 [PATCH] (11/11) old_belkin dongle module conversion 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).