diff options
Diffstat (limited to 'drivers/tc')
-rw-r--r-- | drivers/tc/tc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/tc/tc.c b/drivers/tc/tc.c index 2613c5135c09..d742c3a90b23 100644 --- a/drivers/tc/tc.c +++ b/drivers/tc/tc.c | |||
@@ -8,7 +8,7 @@ | |||
8 | * for more details. | 8 | * for more details. |
9 | * | 9 | * |
10 | * Copyright (c) Harald Koerfgen, 1998 | 10 | * Copyright (c) Harald Koerfgen, 1998 |
11 | * Copyright (c) 2001, 2003 Maciej W. Rozycki | 11 | * Copyright (c) 2001, 2003, 2005 Maciej W. Rozycki |
12 | */ | 12 | */ |
13 | #include <linux/string.h> | 13 | #include <linux/string.h> |
14 | #include <linux/init.h> | 14 | #include <linux/init.h> |
@@ -177,7 +177,7 @@ static void __init tc_probe(unsigned long startaddr, unsigned long size, | |||
177 | /* | 177 | /* |
178 | * the main entry | 178 | * the main entry |
179 | */ | 179 | */ |
180 | void __init tc_init(void) | 180 | static int __init tc_init(void) |
181 | { | 181 | { |
182 | int tc_clock; | 182 | int tc_clock; |
183 | int i; | 183 | int i; |
@@ -185,7 +185,7 @@ void __init tc_init(void) | |||
185 | unsigned long slot_size; | 185 | unsigned long slot_size; |
186 | 186 | ||
187 | if (!TURBOCHANNEL) | 187 | if (!TURBOCHANNEL) |
188 | return; | 188 | return 0; |
189 | 189 | ||
190 | for (i = 0; i < MAX_SLOT; i++) { | 190 | for (i = 0; i < MAX_SLOT; i++) { |
191 | tc_bus[i].base_addr = 0; | 191 | tc_bus[i].base_addr = 0; |
@@ -246,6 +246,8 @@ void __init tc_init(void) | |||
246 | } | 246 | } |
247 | #endif | 247 | #endif |
248 | } | 248 | } |
249 | |||
250 | return 0; | ||
249 | } | 251 | } |
250 | 252 | ||
251 | subsys_initcall(tc_init); | 253 | subsys_initcall(tc_init); |