diff options
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/kernel/cpu/init.c | 2 | ||||
-rw-r--r-- | arch/sh/kernel/setup.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/kernel/cpu/init.c b/arch/sh/kernel/cpu/init.c index cf94e8ef17..868e68b288 100644 --- a/arch/sh/kernel/cpu/init.c +++ b/arch/sh/kernel/cpu/init.c | |||
@@ -30,7 +30,7 @@ static int x##_disabled __initdata = 0; \ | |||
30 | static int __init x##_setup(char *opts) \ | 30 | static int __init x##_setup(char *opts) \ |
31 | { \ | 31 | { \ |
32 | x##_disabled = 1; \ | 32 | x##_disabled = 1; \ |
33 | return 0; \ | 33 | return 1; \ |
34 | } \ | 34 | } \ |
35 | __setup("no" __stringify(x), x##_setup); | 35 | __setup("no" __stringify(x), x##_setup); |
36 | 36 | ||
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c index 7ee4ca2036..bb229ef030 100644 --- a/arch/sh/kernel/setup.c +++ b/arch/sh/kernel/setup.c | |||
@@ -401,7 +401,7 @@ static int __init topology_init(void) | |||
401 | { | 401 | { |
402 | int cpu_id; | 402 | int cpu_id; |
403 | 403 | ||
404 | for_each_cpu(cpu_id) | 404 | for_each_possible_cpu(cpu_id) |
405 | register_cpu(&cpu[cpu_id], cpu_id, NULL); | 405 | register_cpu(&cpu[cpu_id], cpu_id, NULL); |
406 | 406 | ||
407 | return 0; | 407 | return 0; |