diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2005-06-16 20:37:40 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 19:31:24 +0100 |
commit | 778220f7c4a3357f7464a45044fd4937126ba6c5 (patch) | |
tree | b392f0171f06609d3dabe2f12a4a2eb7373f54ed /drivers/tc | |
parent | a76f9fe122e0ba6ff95d3a4daa854e761f8a6a76 (diff) | |
download | lwn-778220f7c4a3357f7464a45044fd4937126ba6c5.tar.gz lwn-778220f7c4a3357f7464a45044fd4937126ba6c5.zip |
Fix function types to ones appropriate for initcalls.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
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 @@ * for more details. * * 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/init.h> @@ -177,7 +177,7 @@ static void __init tc_probe(unsigned long startaddr, unsigned long size, /* * the main entry */ -void __init tc_init(void) +static int __init tc_init(void) { int tc_clock; int i; @@ -185,7 +185,7 @@ void __init tc_init(void) unsigned long slot_size; if (!TURBOCHANNEL) - return; + return 0; for (i = 0; i < MAX_SLOT; i++) { tc_bus[i].base_addr = 0; @@ -246,6 +246,8 @@ void __init tc_init(void) } #endif } + + return 0; } subsys_initcall(tc_init); |