Get rid of MOD_*_USE_COUNT, and use C99 initializers
Subsystems (3)
PATCH 1/3 Get rid of MOD_*_USE_COUNT, and use C99 initializers
drivers/net/bonding/bond_main.c +1 -4
@@ -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_devicebond_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)
all three patches applied to 2.4.x.