ARM: 9261/1: amba: Drop redundant assignments of the system PM callbacks
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Oct 2022 12:36:39 +0000 (13:36 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 7 Nov 2022 14:19:04 +0000 (14:19 +0000)
If the system PM callbacks haven't been assigned, the PM core falls back to
invoke the corresponding the pm_generic_* helpers for the device. Let's
rely on this behaviour and drop the redundant assignments.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
drivers/amba/bus.c

index 32b0e0b..146af02 100644 (file)
@@ -417,12 +417,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,