PM / Domains: Remove redundant wrapper functions for system PM
commit800188538965d90759cea13bcb4f87a214cf5c53
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 30 May 2016 09:43:08 +0000 (30 11:43 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 16 Jun 2016 13:01:43 +0000 (16 15:01 +0200)
tree1340e440b072d132fe2dd86258699b0cb2e1c3b9
parent39dd0f234fc37da071dadbd9b49fe800d62139b4
PM / Domains: Remove redundant wrapper functions for system PM

Due to the previous changes in genpd, which removed the suspend_power_off
flag, several of the system PM callbacks no longer do any additional
checks but only invoke corresponding pm_generic_* helper functions.

To clean up the code, drop these wrapper functions as they have
become redundant. Instead, assign the system PM callbacks directly
to the pm_generic_*() helper functions.

While changing this, it has bocame clear that some of the current
system PM callbacks in genpd invoke wrong driver callbacks. For
example, the genpd's ->restore() callback invokes pm_generic_resume(),
while that should be pm_generic_restore(). Fix that as well.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c