diff options
author | David Daney <ddaney@caviumnetworks.com> | 2010-07-23 13:57:50 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-08-05 08:26:11 -0400 |
commit | 442f201286bfbbcd5ba5acb616914004be3e6268 (patch) | |
tree | 4da6e934c80312527c10d1f9006bac2f208f7338 /arch/mips/cavium-octeon/smp.c | |
parent | edfcbb8cac13d679c0d656fd4576b3945429f3c0 (diff) |
MIPS: Octeon: Simplify hotcpu_notifier registration.
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1490/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/cavium-octeon/smp.c')
-rw-r--r-- | arch/mips/cavium-octeon/smp.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/mips/cavium-octeon/smp.c b/arch/mips/cavium-octeon/smp.c index 8ff2c7b41de..ceb76496e6a 100644 --- a/arch/mips/cavium-octeon/smp.c +++ b/arch/mips/cavium-octeon/smp.c | |||
@@ -428,17 +428,11 @@ static int __cpuinit octeon_cpu_callback(struct notifier_block *nfb, | |||
428 | return NOTIFY_OK; | 428 | return NOTIFY_OK; |
429 | } | 429 | } |
430 | 430 | ||
431 | static struct notifier_block __cpuinitdata octeon_cpu_notifier = { | ||
432 | .notifier_call = octeon_cpu_callback, | ||
433 | }; | ||
434 | |||
435 | static int __cpuinit register_cavium_notifier(void) | 431 | static int __cpuinit register_cavium_notifier(void) |
436 | { | 432 | { |
437 | register_hotcpu_notifier(&octeon_cpu_notifier); | 433 | hotcpu_notifier(octeon_cpu_callback, 0); |
438 | |||
439 | return 0; | 434 | return 0; |
440 | } | 435 | } |
441 | |||
442 | late_initcall(register_cavium_notifier); | 436 | late_initcall(register_cavium_notifier); |
443 | 437 | ||
444 | #endif /* CONFIG_HOTPLUG_CPU */ | 438 | #endif /* CONFIG_HOTPLUG_CPU */ |