* [PATCH 1/3] [bonding 2.4] Get rid of MOD_*_USE_COUNT, and use C99 initializers
@ 2003-09-15 9:00 Amir Noam
2003-09-20 18:20 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Amir Noam @ 2003-09-15 9:00 UTC (permalink / raw)
To: bonding-devel, netdev; +Cc: jgarzik
diff -Nuarp a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
--- a/drivers/net/bonding/bond_main.c 2003-09-15 11:39:34.000000000 +0300
+++ b/drivers/net/bonding/bond_main.c 2003-09-15 11:39:36.000000000 +0300
@@ -980,8 +980,6 @@ static int bond_open(struct net_device *
add_timer(alb_timer);
}
- MOD_INC_USE_COUNT;
-
if (miimon > 0) { /* link check interval, in milliseconds. */
init_timer(timer);
timer->expires = jiffies + (miimon * HZ / 1000);
@@ -1055,7 +1053,6 @@ static int bond_close(struct net_device
bond_alb_deinitialize(bond);
}
- MOD_DEC_USE_COUNT;
return 0;
}
@@ -3770,7 +3767,7 @@ static int bond_netdev_event(struct noti
}
static struct notifier_block bond_netdev_notifier = {
- notifier_call: bond_netdev_event,
+ .notifier_call = bond_netdev_event,
};
static void bond_deinit(struct net_device *dev)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 1/3] [bonding 2.4] Get rid of MOD_*_USE_COUNT, and use C99 initializers
2003-09-15 9:00 [PATCH 1/3] [bonding 2.4] Get rid of MOD_*_USE_COUNT, and use C99 initializers Amir Noam
@ 2003-09-20 18:20 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2003-09-20 18:20 UTC (permalink / raw)
To: Amir Noam; +Cc: bonding-devel, netdev
all three patches applied to 2.4.x.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-09-20 18:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-15 9:00 [PATCH 1/3] [bonding 2.4] Get rid of MOD_*_USE_COUNT, and use C99 initializers Amir Noam
2003-09-20 18:20 ` Jeff Garzik
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).