Merge branch 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6
[pandora-kernel.git] / drivers / staging / batman-adv / main.c
index b3e23e1..0587940 100644 (file)
@@ -72,7 +72,7 @@ static void __exit batman_exit(void)
        destroy_workqueue(bat_event_workqueue);
        bat_event_workqueue = NULL;
 
-       synchronize_net();
+       rcu_barrier();
 }
 
 int mesh_init(struct net_device *soft_iface)
@@ -84,13 +84,11 @@ int mesh_init(struct net_device *soft_iface)
        spin_lock_init(&bat_priv->forw_bcast_list_lock);
        spin_lock_init(&bat_priv->hna_lhash_lock);
        spin_lock_init(&bat_priv->hna_ghash_lock);
-       spin_lock_init(&bat_priv->gw_list_lock);
        spin_lock_init(&bat_priv->vis_hash_lock);
        spin_lock_init(&bat_priv->vis_list_lock);
 
        INIT_HLIST_HEAD(&bat_priv->forw_bat_list);
        INIT_HLIST_HEAD(&bat_priv->forw_bcast_list);
-       INIT_HLIST_HEAD(&bat_priv->gw_list);
 
        if (originator_init(bat_priv) < 1)
                goto err;
@@ -147,11 +145,6 @@ void dec_module_count(void)
        module_put(THIS_MODULE);
 }
 
-int addr_to_string(char *buff, uint8_t *addr)
-{
-       return sprintf(buff, "%pM", addr);
-}
-
 /* returns 1 if they are the same originator */
 
 int compare_orig(void *data1, void *data2)