[PATCH 2/4] [DRIVERS]: use __init in drivers/char/toshiba.c

From: Henrik Kretzschmar
Date: Fri Jan 22 2010 - 16:49:19 EST


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

Signed-off-by: Henrik Kretzschmar <henne@xxxxxxxxxxxxxxxx>
---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/