mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@gmail.com>
To: Andrew Morton <akpm@osdl.org>
Cc: <linux-kernel@vger.kernel.org>
Cc: <R.E.Wolff@BitWizard.nl>
Cc: <support@specialix.co.uk>
Subject: [PATCH 3/5] Char: sx, mark functions as devinit
Date: Sun, 22 Oct 2006 02:56:55 +0200 (CEST)	[thread overview]
Message-ID: <2472126109220008551@wsc.cz> (raw)

sx, mark functions as devinit

Mark as much as possible functions as __devinit to free them after driver
initialization (if no hotplug).

Cc: <R.E.Wolff@BitWizard.nl>
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>

---
commit 2203651d857aafeb50b4b16de1a1805d796598bb
tree 0eb5e4fbe14eefaed70d80c5c3c562107d4ee75b
parent 52aaf84368d81de72e1c4a69756b10ec744fbeab
author Jiri Slaby <jirislaby@gmail.com> Sun, 22 Oct 2006 01:59:22 +0200
committer Jiri Slaby <jirislaby@gmail.com> Sun, 22 Oct 2006 01:59:22 +0200

 drivers/char/sx.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/char/sx.c b/drivers/char/sx.c
index be6fff2..8c845fc 100644
--- a/drivers/char/sx.c
+++ b/drivers/char/sx.c
@@ -2034,7 +2034,7 @@ #endif
 }
 
 
-static void printheader(void)
+static void __devinit printheader(void)
 {
 	static int header_printed;
 
@@ -2047,7 +2047,7 @@ static void printheader(void)
 }
 
 
-static int probe_sx (struct sx_board *board)
+static int __devinit probe_sx (struct sx_board *board)
 {
 	struct vpd_prom vpdp;
 	char *p;
@@ -2125,7 +2125,7 @@ static int probe_sx (struct sx_board *bo
    card. 0xe0000 and 0xf0000 are taken by the BIOS. That only leaves 
    0xc0000, 0xc8000, 0xd0000 and 0xd8000 . */
 
-static int probe_si (struct sx_board *board)
+static int __devinit probe_si (struct sx_board *board)
 {
 	int i;
 
@@ -2364,7 +2364,7 @@ static void __exit sx_release_drivers(vo
    EEprom.  As the bit is read/write for the CPU, we can fix it here,
    if we detect that it isn't set correctly. -- REW */
 
-static void fix_sx_pci (struct pci_dev *pdev, struct sx_board *board)
+static void __devinit fix_sx_pci(struct pci_dev *pdev, struct sx_board *board)
 {
 	unsigned int hwbase;
 	void __iomem *rebase;

                 reply	other threads:[~2006-10-22  0:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=2472126109220008551@wsc.cz \
    --to=jirislaby@gmail.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@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 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®