spin_lock_bh(&mc->mca_lock);
        if (del_timer(&mc->mca_timer))
-               atomic_dec(&mc->mca_refcnt);
+               refcount_dec(&mc->mca_refcnt);
        spin_unlock_bh(&mc->mca_lock);
 }
 
 
 static void mca_get(struct ifmcaddr6 *mc)
 {
-       atomic_inc(&mc->mca_refcnt);
+       refcount_inc(&mc->mca_refcnt);
 }
 
 static void ma_put(struct ifmcaddr6 *mc)
 {
-       if (atomic_dec_and_test(&mc->mca_refcnt)) {
+       if (refcount_dec_and_test(&mc->mca_refcnt)) {
                in6_dev_put(mc->idev);
                kfree(mc);
        }
        mc->mca_users = 1;
        /* mca_stamp should be updated upon changes */
        mc->mca_cstamp = mc->mca_tstamp = jiffies;
-       atomic_set(&mc->mca_refcnt, 1);
+       refcount_set(&mc->mca_refcnt, 1);
        spin_lock_init(&mc->mca_lock);
 
        /* initial mode is (EX, empty) */
                return;
 
        if (del_timer(&ma->mca_timer)) {
-               atomic_dec(&ma->mca_refcnt);
+               refcount_dec(&ma->mca_refcnt);
                delay = ma->mca_timer.expires - jiffies;
        }
 
 
        ma->mca_timer.expires = jiffies + delay;
        if (!mod_timer(&ma->mca_timer, jiffies + delay))
-               atomic_inc(&ma->mca_refcnt);
+               refcount_inc(&ma->mca_refcnt);
        ma->mca_flags |= MAF_TIMER_RUNNING;
 }
 
                if (ipv6_addr_equal(&ma->mca_addr, &mld->mld_mca)) {
                        spin_lock(&ma->mca_lock);
                        if (del_timer(&ma->mca_timer))
-                               atomic_dec(&ma->mca_refcnt);
+                               refcount_dec(&ma->mca_refcnt);
                        ma->mca_flags &= ~(MAF_LAST_REPORTER|MAF_TIMER_RUNNING);
                        spin_unlock(&ma->mca_lock);
                        break;
 
        spin_lock_bh(&ma->mca_lock);
        if (del_timer(&ma->mca_timer)) {
-               atomic_dec(&ma->mca_refcnt);
+               refcount_dec(&ma->mca_refcnt);
                delay = ma->mca_timer.expires - jiffies;
        }
 
        if (!mod_timer(&ma->mca_timer, jiffies + delay))
-               atomic_inc(&ma->mca_refcnt);
+               refcount_inc(&ma->mca_refcnt);
        ma->mca_flags |= MAF_TIMER_RUNNING | MAF_LAST_REPORTER;
        spin_unlock_bh(&ma->mca_lock);
 }