提交 a62926fe 编写于 作者: P Paul Mundt

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: NPaul Mundt <lethal@linux-sh.org>
上级 af76756e
......@@ -251,8 +251,8 @@ int platform_pm_runtime_idle(struct device *dev)
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);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册