netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.5.69] wanrouter clean up MOD_*_USE_COUNT
@ 2003-05-21 20:48 Daniel McNeil
  2003-05-21 23:18 ` Arnaldo Carvalho de Melo
  2003-05-21 23:22 ` David S. Miller
  0 siblings, 2 replies; 8+ messages in thread
From: Daniel McNeil @ 2003-05-21 20:48 UTC (permalink / raw)
  To: ncorbic, dm, davem@redhat.com; +Cc: netdev@oss.sgi.com

[-- Attachment #1: Type: text/plain, Size: 199 bytes --]

Here is simple patch to remove MOD_INC_USE_COUNT and
MOD_DEC_USE_COUNT.  The wanrouter module will get a reference
when another module uses its exported symbols.

-- 
Daniel McNeil <daniel@osdl.org>

[-- Attachment #2: patch-2.5.69-wan --]
[-- Type: text/x-patch, Size: 614 bytes --]

diff -rupN -X /home/daniel/dontdiff linux-2.5.69/net/wanrouter/wanmain.c linux-2.5.69.wan/net/wanrouter/wanmain.c
--- linux-2.5.69/net/wanrouter/wanmain.c	Sun May  4 16:53:35 2003
+++ linux-2.5.69.wan/net/wanrouter/wanmain.c	Wed May 21 11:37:50 2003
@@ -303,7 +303,6 @@ int register_wan_device(wan_device_t *wa
 	wandev->next = router_devlist;
 	router_devlist = wandev;
 	++devcnt;
-        MOD_INC_USE_COUNT;	/* prevent module from unloading */
 	return 0;
 }
 
@@ -348,7 +347,6 @@ int unregister_wan_device(char *name)
 
 	--devcnt;
 	wanrouter_proc_delete(wandev);
-        MOD_DEC_USE_COUNT;
 	return 0;
 }
 

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

end of thread, other threads:[~2003-05-22 16:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-21 20:48 [PATCH 2.5.69] wanrouter clean up MOD_*_USE_COUNT Daniel McNeil
2003-05-21 23:18 ` Arnaldo Carvalho de Melo
2003-05-21 23:27   ` David S. Miller
2003-05-22  0:40     ` Arnaldo Carvalho de Melo
2003-05-22  0:47     ` Arnaldo Carvalho de Melo
2003-05-22  7:59       ` David S. Miller
2003-05-22 16:14     ` Daniel McNeil
2003-05-21 23:22 ` 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).