]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
powerpc: register_cpu_online should be __cpuinit
authorNathan Lynch <ntl@pobox.com>
Sun, 27 Jul 2008 05:24:51 +0000 (15:24 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Jul 2008 06:30:48 +0000 (16:30 +1000)
It is called only in cpu online paths.

(caught by CONFIG_DEBUG_SECTION_MISMATCH=y)

Signed-off-by: Nathan Lynch <ntl@pobox.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/sysfs.c

index 800e5e9a087bf1c6d73aefde583876736fe32045..156808086cacd6135b6f1048e2a5762a1c89bedf 100644 (file)
@@ -298,7 +298,7 @@ static struct sysdev_attribute pa6t_attrs[] = {
 };
 
 
-static void register_cpu_online(unsigned int cpu)
+static void __cpuinit register_cpu_online(unsigned int cpu)
 {
        struct cpu *c = &per_cpu(cpu_devices, cpu);
        struct sys_device *s = &c->sysdev;