[PATCH 2.6.11-rc5-mm1] mips: add __init

From: Yoichi Yuasa
Date: Wed Mar 02 2005 - 18:25:23 EST


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@xxxxxxxxxxxxxx>

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/