diff options
author | Nathan Lynch <ntl@pobox.com> | 2008-07-27 01:24:51 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-07-28 02:30:48 -0400 |
commit | 9ba1984ead5d25c93d241e0ee43f8f6a252f60d9 (patch) | |
tree | e4c7bce3f3ab1285a214fe666df9fbd8942d94aa /arch/powerpc/kernel/sysfs.c | |
parent | 7d2f6075f992d33c7be829c3638b8cb72b782b19 (diff) |
powerpc: register_cpu_online should be __cpuinit
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>
Diffstat (limited to 'arch/powerpc/kernel/sysfs.c')
-rw-r--r-- | arch/powerpc/kernel/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/sysfs.c b/arch/powerpc/kernel/sysfs.c index 800e5e9a087b..156808086cac 100644 --- a/arch/powerpc/kernel/sysfs.c +++ b/arch/powerpc/kernel/sysfs.c | |||
@@ -298,7 +298,7 @@ static struct sysdev_attribute pa6t_attrs[] = { | |||
298 | }; | 298 | }; |
299 | 299 | ||
300 | 300 | ||
301 | static void register_cpu_online(unsigned int cpu) | 301 | static void __cpuinit register_cpu_online(unsigned int cpu) |
302 | { | 302 | { |
303 | struct cpu *c = &per_cpu(cpu_devices, cpu); | 303 | struct cpu *c = &per_cpu(cpu_devices, cpu); |
304 | struct sys_device *s = &c->sysdev; | 304 | struct sys_device *s = &c->sysdev; |