提交 778220f7 编写于 作者: M Maciej W. Rozycki 提交者: Ralf Baechle

Fix function types to ones appropriate for initcalls.

Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 a76f9fe1
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* for more details. * for more details.
* *
* Copyright (c) Harald Koerfgen, 1998 * Copyright (c) Harald Koerfgen, 1998
* Copyright (c) 2001, 2003 Maciej W. Rozycki * Copyright (c) 2001, 2003, 2005 Maciej W. Rozycki
*/ */
#include <linux/string.h> #include <linux/string.h>
#include <linux/init.h> #include <linux/init.h>
...@@ -177,7 +177,7 @@ static void __init tc_probe(unsigned long startaddr, unsigned long size, ...@@ -177,7 +177,7 @@ static void __init tc_probe(unsigned long startaddr, unsigned long size,
/* /*
* the main entry * the main entry
*/ */
void __init tc_init(void) static int __init tc_init(void)
{ {
int tc_clock; int tc_clock;
int i; int i;
...@@ -185,7 +185,7 @@ void __init tc_init(void) ...@@ -185,7 +185,7 @@ void __init tc_init(void)
unsigned long slot_size; unsigned long slot_size;
if (!TURBOCHANNEL) if (!TURBOCHANNEL)
return; return 0;
for (i = 0; i < MAX_SLOT; i++) { for (i = 0; i < MAX_SLOT; i++) {
tc_bus[i].base_addr = 0; tc_bus[i].base_addr = 0;
...@@ -246,6 +246,8 @@ void __init tc_init(void) ...@@ -246,6 +246,8 @@ void __init tc_init(void)
} }
#endif #endif
} }
return 0;
} }
subsys_initcall(tc_init); subsys_initcall(tc_init);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册