From: Mateusz Mandera <ormi.linux@gmail.com>
To: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org,
p_gortmaker@yahoo.com, trivial@kernel.org
Subject: [PATCH]8390p: Get rid of init_module/cleanup_module
Date: Sat, 11 Apr 2009 14:55:22 +0200 [thread overview]
Message-ID: <667b0cb60904110555k442f3959k9140d355b00980cd@mail.gmail.com> (raw)
This trivial patch just "gets rid of" init_module and cleanup_module
from drivers/net/8390p.c
Signed-off-by: Mateusz Mandera <ormi.linux@gmail.com>
---
diff --git a/drivers/net/8390p.c b/drivers/net/8390p.c
index da863c9..ec9e3ca 100644
--- a/drivers/net/8390p.c
+++ b/drivers/net/8390p.c
@@ -97,16 +97,15 @@ void NS8390p_init(struct net_device *dev, int startp)
}
EXPORT_SYMBOL(NS8390p_init);
-#if defined(MODULE)
-
-int init_module(void)
+static int __init 8390p_init_module(void)
{
return 0;
}
-void cleanup_module(void)
+static void __exit 8390p_cleanup_module(void)
{
}
-#endif /* MODULE */
+module_init(8390p_init_module);
+module_exit(8390p_cleanup_module);
MODULE_LICENSE("GPL");
next reply other threads:[~2009-04-11 12:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-11 12:55 Mateusz Mandera [this message]
2009-04-20 15:46 ` Jiri Kosina
2009-04-22 9:24 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=667b0cb60904110555k442f3959k9140d355b00980cd@mail.gmail.com \
--to=ormi.linux@gmail.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=p_gortmaker@yahoo.com \
--cc=trivial@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®