[PATCH] AMBA: Drop redundant assignment of the system PM callbacks

Ulf Hansson ulf.hansson at linaro.org
Wed Apr 20 10:49:01 PDT 2016


Instead of assigning the system PM callbacks to the pm_generic_* helpers,
we can rely on the PM core to get the same behaviour. Therefore let's drop
the assignments.

Signed-off-by: Ulf Hansson <ulf.hansson at linaro.org>
---
 drivers/amba/bus.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c
index f009936..1e4f57f 100644
--- a/drivers/amba/bus.c
+++ b/drivers/amba/bus.c
@@ -172,12 +172,6 @@ static int amba_pm_runtime_resume(struct device *dev)
 #endif /* CONFIG_PM */
 
 static const struct dev_pm_ops amba_pm = {
-	.suspend	= pm_generic_suspend,
-	.resume		= pm_generic_resume,
-	.freeze		= pm_generic_freeze,
-	.thaw		= pm_generic_thaw,
-	.poweroff	= pm_generic_poweroff,
-	.restore	= pm_generic_restore,
 	SET_RUNTIME_PM_OPS(
 		amba_pm_runtime_suspend,
 		amba_pm_runtime_resume,
-- 
1.9.1




More information about the linux-arm-kernel mailing list