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>
This commit is contained in:
parent
af76756e6e
commit
a62926fe4b
1 changed files with 2 additions and 3 deletions
|
@ -251,8 +251,8 @@ out:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __devinit platform_bus_notify(struct notifier_block *nb,
|
static int platform_bus_notify(struct notifier_block *nb,
|
||||||
unsigned long action, void *data)
|
unsigned long action, void *data)
|
||||||
{
|
{
|
||||||
struct device *dev = data;
|
struct device *dev = data;
|
||||||
struct platform_device *pdev = to_platform_device(dev);
|
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);
|
bus_register_notifier(&platform_bus_type, &platform_bus_notifier);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
core_initcall(sh_pm_runtime_init);
|
core_initcall(sh_pm_runtime_init);
|
||||||
|
|
Loading…
Add table
Reference in a new issue