All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerome Steunenberg <jerome@steunenberg.org>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] [PATCH] drivers/video/vgastate.c
Date: Thu, 28 Jul 2005 14:22:44 +0000	[thread overview]
Message-ID: <42E8EA34.3020300@steunenberg.org> (raw)

This is my first patch to kernel-janitors. Please tell me if I got it all ok
In drivers/video/vgastate.c, the calls to init_module and cleanup_module have been replaced by calls to module_init and module_exit.

Signed-off-by: Jerome Steunenberg <jerome@steunenberg.org>



--- linux-2.6.13-rc3/drivers/video/vgastate.c.orig	2005-07-25 15:09:51.000000000 +0200
+++ linux-2.6.13-rc3/drivers/video/vgastate.c	2005-07-26 10:15:32.000000000 +0200
@@ -491,8 +491,17 @@ int restore_vga (struct vgastate *state)
  }

  #ifdef MODULE
-int init_module(void) { return 0; };
-void cleanup_module(void) {};
+static int __init vgastate_init(void)
+{
+	return 0;
+}
+
+static void __exit vgastate_exit(void)
+{
+}
+
+module_init(vgastate_init);
+module_exit(vgastate_exit);
  #endif

  EXPORT_SYMBOL(save_vga);
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

             reply	other threads:[~2005-07-28 14:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-28 14:22 Jerome Steunenberg [this message]
2005-07-28 17:18 ` [KJ] [PATCH] drivers/video/vgastate.c Domen Puncer

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=42E8EA34.3020300@steunenberg.org \
    --to=jerome@steunenberg.org \
    --cc=kernel-janitors@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.