Commit 0fb3e5fb authored by Chas Williams's avatar Chas Williams Committed by David S. Miller

[ATM]: [lanai] Get rid of MOD_INC/MOD_DEC (from shemminger@osdl.org).

parent 7ba6ce3e
......@@ -2242,7 +2242,6 @@ static int __init lanai_dev_open(struct atm_dev *atmdev)
printk(KERN_ERR DEV_LABEL ": can't allocate interrupt\n");
goto error_vcctable;
}
MOD_INC_USE_COUNT; /* At this point we can't fail */
mb(); /* Make sure that all that made it */
intr_enable(lanai, INT_ALL & ~(INT_PING | INT_WAKE));
/* 3.11: initialize loop mode (i.e. turn looping off) */
......@@ -2312,7 +2311,6 @@ static void lanai_dev_close(struct atm_dev *atmdev)
service_buffer_deallocate(lanai);
iounmap((void *) lanai->base);
kfree(lanai);
MOD_DEC_USE_COUNT;
}
/* close a vcc */
......@@ -2686,7 +2684,8 @@ static const struct atmdev_ops ops = {
.phy_put = NULL,
.phy_get = NULL,
.change_qos = lanai_change_qos,
.proc_read = lanai_proc_read
.proc_read = lanai_proc_read,
.owner = THIS_MODULE
};
/* initialize one probed card */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment