Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a62926fe authored by Paul Mundt's avatar Paul Mundt
Browse files

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: default avatarPaul Mundt <lethal@linux-sh.org>
parent af76756e
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -251,7 +251,7 @@ int platform_pm_runtime_idle(struct device *dev)
	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)
{
	struct device *dev = data;
@@ -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);