drivers: move drivers/sh/pm_runtime.c to drivers/base
Quoted 2 lines · Ben Dooks
Move the
drivers/sh/pm_runtime.ccode todrivers/baseas it may be of use to any systems that need some generic platformbus power management.
[...]
Quoted 2 lines
drivers/base/pm_runtime_platform.c new file +0
-0
[...]
drivers/base/pm_runtime_platform.c
Quoted 3 lines
drivers/base/pm_runtime_platform.c new file +3
-0+#if defined(CONFIG_ARCH_SHMOBILE_LEGACY ) || defined(CONFIG_SH ) +core_initcall (platformbus_pm_runtime_init); +#endif
It looks like this bit is actually needed in patch 2/6. I'm not sure how these different platform config symbols are used, though.
[...]
Quoted 2 lines
drivers/sh/pm_runtime.c deleted +0
-0
[...]
drivers/sh/pm_runtime.c
Quoted 6 lines
drivers/sh/pm_runtime.c deleted +0
-6-int __init sh_pm_runtime_init (void ) -{ - default_pm_on = true; -pm_clk_add_notifier (&platform_bus_type, &platform_bus_notifier); -return 0 ; -}
[...]
This appears to break SHMobile until 6/6 "ARM: shmobile: change to use platformbus_pm_runtime_init" is also applied. They should be folded together.
Ben.