]> git.hungrycats.org Git - linux/commitdiff
[IRDA]: girbil dongle module conversion.
authorStephen Hemminger <shemminger@osdl.org>
Sat, 4 Oct 2003 07:56:50 +0000 (00:56 -0700)
committerStephen Hemminger <shemminger@osdl.org>
Sat, 4 Oct 2003 07:56:50 +0000 (00:56 -0700)
drivers/net/irda/girbil.c

index 86aa07719c50cdcc1e3dfe89355969176196130f..9e426fd2fca54cd8d1248d67a26cfae0bc0399c4 100644 (file)
@@ -63,12 +63,12 @@ static int  girbil_change_speed(struct irda_task *task);
 #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 @@ static void girbil_open(dongle_t *self, struct qos_info *qos)
 {
        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;
 }
 
 /*