diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-08-17 21:41:06 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-08-23 05:03:20 -0400 |
commit | a62926fe4b76d539b77ee53197040153d43916f6 (patch) | |
tree | b407f9239e02fffdd4f4fac274fe55ecf187603d /arch | |
parent | af76756e6e8c268c684865d29b897a470de1f097 (diff) |
sh: Fix section mismatch in platform bus notifier.
The runtime PM for SH-Mobile code had platform_bus_notify() as __devinit,
which is rather bogus. Kill off the annotation, which subsequently
silences the section mismatch warnings.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/kernel/cpu/shmobile/pm_runtime.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/sh/kernel/cpu/shmobile/pm_runtime.c b/arch/sh/kernel/cpu/shmobile/pm_runtime.c index d5f5285a2253..7c615b17e209 100644 --- a/arch/sh/kernel/cpu/shmobile/pm_runtime.c +++ b/arch/sh/kernel/cpu/shmobile/pm_runtime.c | |||
@@ -251,8 +251,8 @@ out: | |||
251 | return ret; | 251 | return ret; |
252 | } | 252 | } |
253 | 253 | ||
254 | static int __devinit platform_bus_notify(struct notifier_block *nb, | 254 | static int platform_bus_notify(struct notifier_block *nb, |
255 | unsigned long action, void *data) | 255 | unsigned long action, void *data) |
256 | { | 256 | { |
257 | struct device *dev = data; | 257 | struct device *dev = data; |
258 | struct platform_device *pdev = to_platform_device(dev); | 258 | struct platform_device *pdev = to_platform_device(dev); |
@@ -300,5 +300,4 @@ static int __init sh_pm_runtime_init(void) | |||
300 | bus_register_notifier(&platform_bus_type, &platform_bus_notifier); | 300 | bus_register_notifier(&platform_bus_type, &platform_bus_notifier); |
301 | return 0; | 301 | return 0; |
302 | } | 302 | } |
303 | |||
304 | core_initcall(sh_pm_runtime_init); | 303 | core_initcall(sh_pm_runtime_init); |