Skip to content

Commit 8b313a3

Browse files
committed
PM / Platform: Use generic runtime PM callbacks directly
Once shmobile platforms have been converted to using power domains for overriding the platform bus type's PM callbacks, it isn't necessary to use the __weakly defined wrappers around the generinc runtime PM callbacks in the platform bus type any more. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
1 parent 38ade3a commit 8b313a3

1 file changed

Lines changed: 3 additions & 28 deletions

File tree

‎drivers/base/platform.c‎

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -900,35 +900,10 @@ int platform_pm_restore_noirq(struct device *dev)
900900

901901
#endif /* CONFIG_HIBERNATE_CALLBACKS */
902902

903-
#ifdef CONFIG_PM_RUNTIME
904-
905-
int __weak platform_pm_runtime_suspend(struct device *dev)
906-
{
907-
return pm_generic_runtime_suspend(dev);
908-
};
909-
910-
int __weak platform_pm_runtime_resume(struct device *dev)
911-
{
912-
return pm_generic_runtime_resume(dev);
913-
};
914-
915-
int __weak platform_pm_runtime_idle(struct device *dev)
916-
{
917-
return pm_generic_runtime_idle(dev);
918-
};
919-
920-
#else /* !CONFIG_PM_RUNTIME */
921-
922-
#define platform_pm_runtime_suspend NULL
923-
#define platform_pm_runtime_resume NULL
924-
#define platform_pm_runtime_idle NULL
925-
926-
#endif /* !CONFIG_PM_RUNTIME */
927-
928903
static const struct dev_pm_ops platform_dev_pm_ops = {
929-
.runtime_suspend = platform_pm_runtime_suspend,
930-
.runtime_resume = platform_pm_runtime_resume,
931-
.runtime_idle = platform_pm_runtime_idle,
904+
.runtime_suspend = pm_generic_runtime_suspend,
905+
.runtime_resume = pm_generic_runtime_resume,
906+
.runtime_idle = pm_generic_runtime_idle,
932907
USE_PLATFORM_PM_SLEEP_OPS
933908
};
934909

0 commit comments

Comments
 (0)