rcu: convert uses of rcu_assign_pointer(x, NULL) to RCU_INIT_POINTER
[pandora-kernel.git] / net / can / af_can.c
index 8ce926d..b9efa94 100644 (file)
@@ -719,7 +719,7 @@ int can_proto_register(const struct can_proto *cp)
                       proto);
                err = -EBUSY;
        } else
-               rcu_assign_pointer(proto_tab[proto], cp);
+               RCU_INIT_POINTER(proto_tab[proto], cp);
 
        mutex_unlock(&proto_tab_lock);
 
@@ -740,7 +740,7 @@ void can_proto_unregister(const struct can_proto *cp)
 
        mutex_lock(&proto_tab_lock);
        BUG_ON(proto_tab[proto] != cp);
-       rcu_assign_pointer(proto_tab[proto], NULL);
+       RCU_INIT_POINTER(proto_tab[proto], NULL);
        mutex_unlock(&proto_tab_lock);
 
        synchronize_rcu();