linux-mips
[Top] [All Lists]

[PATCH 2/3] MIPS: Octeon: Simplify hotcpu_notifier registration.

To: linux-mips@linux-mips.org, ralf@linux-mips.org
Subject: [PATCH 2/3] MIPS: Octeon: Simplify hotcpu_notifier registration.
From: David Daney <ddaney@caviumnetworks.com>
Date: Fri, 23 Jul 2010 10:57:50 -0700
Cc: David Daney <ddaney@caviumnetworks.com>
In-reply-to: <1279907871-24419-1-git-send-email-ddaney@caviumnetworks.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1279907871-24419-1-git-send-email-ddaney@caviumnetworks.com>
Sender: linux-mips-bounce@linux-mips.org
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
---
 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 8ff2c7b..ceb7649 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,
        return NOTIFY_OK;
 }
 
-static struct notifier_block __cpuinitdata octeon_cpu_notifier = {
-       .notifier_call = octeon_cpu_callback,
-};
-
 static int __cpuinit register_cavium_notifier(void)
 {
-       register_hotcpu_notifier(&octeon_cpu_notifier);
-
+       hotcpu_notifier(octeon_cpu_callback, 0);
        return 0;
 }
-
 late_initcall(register_cavium_notifier);
 
 #endif  /* CONFIG_HOTPLUG_CPU */
-- 
1.7.1.1


<Prev in Thread] Current Thread [Next in Thread>