From f8a0efb52dcb91241a6f7d5290aa50f649b27c75 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Sat, 4 Oct 2003 00:55:19 -0700 Subject: [PATCH] [IRDA]: act200l dongle module conversion. --- drivers/net/irda/act200l.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/drivers/net/irda/act200l.c b/drivers/net/irda/act200l.c index 46d3164bf7ebe..64ad12d3ae43d 100644 --- a/drivers/net/irda/act200l.c +++ b/drivers/net/irda/act200l.c @@ -84,12 +84,12 @@ static int act200l_change_speed(struct irda_task *task); #define ACT200L_OSCL 0x04 /* oscillator in low power, medium accuracy mode */ static struct dongle_reg dongle = { - Q_NULL, - IRDA_ACT200L_DONGLE, - act200l_open, - act200l_close, - act200l_reset, - act200l_change_speed, + .type = IRDA_ACT200L_DONGLE, + .open = act200l_open, + .close = act200l_close, + .reset = act200l_reset, + .change_speed = act200l_change_speed, + .owner = THIS_MODULE, }; int __init act200l_init(void) @@ -112,8 +112,6 @@ static void act200l_open(dongle_t *self, struct qos_info *qos) /* Set the speeds we can accept */ 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 act200l_close(dongle_t *self) @@ -122,8 +120,6 @@ static void act200l_close(dongle_t *self) /* Power off the dongle */ self->set_dtr_rts(self->dev, FALSE, FALSE); - - MOD_DEC_USE_COUNT; } /* -- 2.53.0