mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Henrik Kretzschmar <henne@nachtwindheim.de>
To: jonathan@buzzard.org.uk
Cc: alan@linux.intel.com, tlinux-users@tce.toshiba-dme.co.jp,
	linux-kernel@vger.kernel.org,
	Henrik Kretzschmar <henne@nachtwindheim.de>
Subject: [PATCH 2/4] [DRIVERS]: use __init in drivers/char/toshiba.c
Date: Fri, 22 Jan 2010 22:41:10 +0100	[thread overview]
Message-ID: <1264196472-5387-2-git-send-email-henne@nachtwindheim.de> (raw)
In-Reply-To: <1264196472-5387-1-git-send-email-henne@nachtwindheim.de>

Use __init on functions which are only called while loading the driver.

Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
---
 drivers/char/toshiba.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/char/toshiba.c b/drivers/char/toshiba.c
index 4644ea8..8e686ac 100644
--- a/drivers/char/toshiba.c
+++ b/drivers/char/toshiba.c
@@ -344,7 +344,7 @@ static const struct file_operations proc_toshiba_fops = {
 /*
  * Determine which port to use for the Fn key status
  */
-static void tosh_set_fn_port(void)
+static void __init tosh_set_fn_port(void)
 {
 	switch (tosh_id) {
 		case 0xfc02: case 0xfc04: case 0xfc09: case 0xfc0a: case 0xfc10:
@@ -368,7 +368,7 @@ static void tosh_set_fn_port(void)
 /*
  * Get the machine identification number of the current model
  */
-static int tosh_get_machine_id(void __iomem *bios)
+static int __init tosh_get_machine_id(void __iomem *bios)
 {
 	int id;
 	SMMRegisters regs;
@@ -424,7 +424,7 @@ static int tosh_get_machine_id(void __iomem *bios)
  *   laptop, otherwise zero and determines the Machine ID, BIOS version and
  *   date, and SCI version.
  */
-static int tosh_probe(void)
+static int __init tosh_probe(void)
 {
 	int i,major,minor,day,year,month,flag;
 	unsigned char signature[7] = { 0x54,0x4f,0x53,0x48,0x49,0x42,0x41 };
-- 
1.6.5


  reply	other threads:[~2010-01-22 21:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-22 21:41 [PATCH 1/4] [DRIVERS]: add Toshiba Portege M100 Fn key port Henrik Kretzschmar
2010-01-22 21:41 ` Henrik Kretzschmar [this message]
2010-01-22 21:41   ` [PATCH 3/4] [DRIVERS] loglevel clenup in toshiba.c Henrik Kretzschmar
2010-01-22 21:41     ` [PATCH 4/4] [DRIVERS] add a register dumper for debugging Henrik Kretzschmar

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=1264196472-5387-2-git-send-email-henne@nachtwindheim.de \
    --to=henne@nachtwindheim.de \
    --cc=alan@linux.intel.com \
    --cc=jonathan@buzzard.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tlinux-users@tce.toshiba-dme.co.jp \
    /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®