lkml.org 
[lkml]   [2005]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 2.6.11-rc5-mm1] mips: add __init
This patch adds __init for the function used only for initialization. 
This patch is only for 2.6.11-rc5-mm1.

Yoichi

Signed-off-by: Yoichi Yuasa <yuasa@hh.iij4u.or.jp>

diff -urN -X dontdiff a-orig/arch/mips/vr41xx/casio-e55/setup.c a/arch/mips/vr41xx/casio-e55/setup.c
--- a-orig/arch/mips/vr41xx/casio-e55/setup.c Wed Mar 2 01:01:57 2005
+++ a/arch/mips/vr41xx/casio-e55/setup.c Wed Mar 2 08:36:58 2005
@@ -17,6 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <linux/init.h>
#include <linux/ioport.h>

#include <asm/io.h>
@@ -27,7 +28,7 @@
return "CASIO CASSIOPEIA E-11/15/55/65";
}

-static int casio_e55_setup(void)
+static int __init casio_e55_setup(void)
{
set_io_port_base(IO_PORT_BASE);
ioport_resource.start = IO_PORT_RESOURCE_START;
@@ -36,4 +37,4 @@
return 0;
}

-early_initcall(casio_e55_setup);
+arch_initcall(casio_e55_setup);
diff -urN -X dontdiff a-orig/arch/mips/vr41xx/ibm-workpad/setup.c a/arch/mips/vr41xx/ibm-workpad/setup.c
--- a-orig/arch/mips/vr41xx/ibm-workpad/setup.c Wed Mar 2 01:01:57 2005
+++ a/arch/mips/vr41xx/ibm-workpad/setup.c Wed Mar 2 08:36:58 2005
@@ -17,6 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <linux/init.h>
#include <linux/ioport.h>

#include <asm/io.h>
@@ -27,7 +28,7 @@
return "IBM WorkPad z50";
}

-static int ibm_workpad_setup(void)
+static int __init ibm_workpad_setup(void)
{
set_io_port_base(IO_PORT_BASE);
ioport_resource.start = IO_PORT_RESOURCE_START;
@@ -36,4 +37,4 @@
return 0;
}

-early_initcall(ibm_workpad_setup);
+arch_initcall(ibm_workpad_setup);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.036 / U:0.796 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site