sh: Fix section mismatch in platform bus notifier.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 18 Aug 2009 01:41:06 +0000 (10:41 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Sun, 23 Aug 2009 09:03:20 +0000 (18:03 +0900)
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>
arch/sh/kernel/cpu/shmobile/pm_runtime.c

index d5f5285..7c615b1 100644 (file)
@@ -251,8 +251,8 @@ out:
        return ret;
 }
 
-static int __devinit platform_bus_notify(struct notifier_block *nb,
-                                        unsigned long action, void *data)
+static int platform_bus_notify(struct notifier_block *nb,
+                              unsigned long action, void *data)
 {
        struct device *dev = data;
        struct platform_device *pdev = to_platform_device(dev);
@@ -300,5 +300,4 @@ static int __init sh_pm_runtime_init(void)
        bus_register_notifier(&platform_bus_type, &platform_bus_notifier);
        return 0;
 }
-
 core_initcall(sh_pm_runtime_init);