netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][ATM]: [lanai] get rid of MOD_INC/MOD_DEC (from shemminger@osdl.org)
@ 2003-09-21 14:46 chas williams
  2003-09-22  1:11 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: chas williams @ 2003-09-21 14:46 UTC (permalink / raw)
  To: davem; +Cc: netdev

please apply to 2.6.  --thanks

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.1436  -> 1.1437 
#	 drivers/atm/lanai.c	1.27    -> 1.28   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/09/09	chas@relax.cmf.nrl.navy.mil	1.1437
# [ATM]: [lanai] get rid of MOD_INC/MOD_DEC (from shemminger@osdl.org)
# --------------------------------------------
#
diff -Nru a/drivers/atm/lanai.c b/drivers/atm/lanai.c
--- a/drivers/atm/lanai.c	Sun Sep 21 09:36:46 2003
+++ b/drivers/atm/lanai.c	Sun Sep 21 09:36:46 2003
@@ -2242,7 +2242,6 @@
 		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 @@
 	service_buffer_deallocate(lanai);
 	iounmap((void *) lanai->base);
 	kfree(lanai);
-	MOD_DEC_USE_COUNT;
 }
 
 /* close a vcc */
@@ -2686,7 +2684,8 @@
 	.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 */

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH][ATM]: [lanai] get rid of MOD_INC/MOD_DEC (from shemminger@osdl.org)
  2003-09-21 14:46 [PATCH][ATM]: [lanai] get rid of MOD_INC/MOD_DEC (from shemminger@osdl.org) chas williams
@ 2003-09-22  1:11 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2003-09-22  1:11 UTC (permalink / raw)
  To: chas3; +Cc: chas, netdev

On Sun, 21 Sep 2003 10:46:19 -0400
chas williams <chas@cmf.nrl.navy.mil> wrote:

> please apply to 2.6.  --thanks
 ...
> # [ATM]: [lanai] get rid of MOD_INC/MOD_DEC (from shemminger@osdl.org)

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-09-22  1:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-21 14:46 [PATCH][ATM]: [lanai] get rid of MOD_INC/MOD_DEC (from shemminger@osdl.org) chas williams
2003-09-22  1:11 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).