Re: [RESEND PATCH v3 2/2] PM / Domains: Remove redundant wrapper functions for system PM
From: Kevin Hilman <khilman@baylibre.com>
Date: 2016-06-15 21:01:43
Also in:
dri-devel
From: Kevin Hilman <khilman@baylibre.com>
Date: 2016-06-15 21:01:43
Also in:
dri-devel
Ulf Hansson [off-list ref] writes:
Due to the previous changes to genpd, which removed the suspend_power_off flag, several of the system PM callbacks is no longer doing any additional checks but only invoking a corresponding pm_generic_* helper function. To clean up the code let's remove these wrapper functions as they have become redundant. Instead assign the system PM callbacks directly to the pm_generic_*() helper function. While changing this, it became clear that some of the current system PM callbacks in genpd, invokes the wrong callback at the driver level. For example, genpd's ->restore() callback invokes pm_generic_resume(), while it should be pm_generic_restore(). Let's fix this as well. Signed-off-by: Ulf Hansson <redacted>
Reviewed-by: Kevin Hilman <khilman@baylibre.com> Acked-by: Kevin Hilman <khilman@baylibre.com> Kevin