From: Jiri Kosina <jkosina@suse.cz>
To: Mateusz Mandera <ormi.linux@gmail.com>
Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org,
p_gortmaker@yahoo.com, trivial@kernel.org,
netdev@vger.kernel.org
Subject: Re: [PATCH]8390p: Get rid of init_module/cleanup_module
Date: Mon, 20 Apr 2009 17:46:19 +0200 (CEST) [thread overview]
Message-ID: <alpine.LNX.2.00.0904201744380.13028@wotan.suse.de> (raw)
In-Reply-To: <667b0cb60904110555k442f3959k9140d355b00980cd@mail.gmail.com>
On Sat, 11 Apr 2009, Mateusz Mandera wrote:
> 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");
I'd rather have this merged through subsystem tree than trivial tree,
adding netdev to CC.
--
Jiri Kosina
SUSE Labs
next prev parent reply other threads:[~2009-04-20 15:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-11 12:55 Mateusz Mandera
2009-04-20 15:46 ` Jiri Kosina [this message]
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=alpine.LNX.2.00.0904201744380.13028@wotan.suse.de \
--to=jkosina@suse.cz \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=ormi.linux@gmail.com \
--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®