* [PATCH] [ATM]: [uPD98402] convert to new-style module
@ 2003-09-21 14:47 chas williams
2003-09-22 1:12 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: chas williams @ 2003-09-21 14:47 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.1443 -> 1.1444
# drivers/atm/uPD98402.c 1.6 -> 1.7
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/09/21 chas@relax.cmf.nrl.navy.mil 1.1444
# uPD98402.c:
# [ATM]: [uPD98402] convert to new-style module
# --------------------------------------------
#
diff -Nru a/drivers/atm/uPD98402.c b/drivers/atm/uPD98402.c
--- a/drivers/atm/uPD98402.c Sun Sep 21 10:40:29 2003
+++ b/drivers/atm/uPD98402.c Sun Sep 21 10:40:29 2003
@@ -254,22 +254,13 @@
}
-#ifdef MODULE
MODULE_LICENSE("GPL");
EXPORT_SYMBOL(uPD98402_init);
-
-int init_module(void)
+static __init int uPD98402_module_init(void)
{
- MOD_INC_USE_COUNT;
return 0;
}
-
-
-void cleanup_module(void)
-{
- /* Nay */
-}
-
-#endif
+module_init(uPD98402_module_init);
+/* module_exit not defined so not unloadable */
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] [ATM]: [uPD98402] convert to new-style module
2003-09-21 14:47 [PATCH] [ATM]: [uPD98402] convert to new-style module chas williams
@ 2003-09-22 1:12 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2003-09-22 1:12 UTC (permalink / raw)
To: chas3; +Cc: chas, netdev
On Sun, 21 Sep 2003 10:47:02 -0400
chas williams <chas@cmf.nrl.navy.mil> wrote:
> please apply to 2.6. --thanks
...
> # [ATM]: [uPD98402] convert to new-style module
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-09-22 1:12 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:47 [PATCH] [ATM]: [uPD98402] convert to new-style module chas williams
2003-09-22 1:12 ` 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).