diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2014-09-03 06:52:24 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-09-08 18:46:12 -0400 |
commit | d47e6464ae6c96735d4706f5cb0537fe717b6b00 (patch) | |
tree | e08605030a8c2ff3fd257763e70c361fc71d9dc7 /drivers/base | |
parent | 784b0d3d8bc5b8ac60fc620c3420dc430bba61a7 (diff) |
PM / domains: Remove pm_genpd_syscore_switch() API
The pm_genpd_syscore_poweroff() API and pm_genpd_syscore_poweron() API
makes the pm_genpd_syscore_switch() API redundant.
Moreover, since there are no active users, let's just remove it.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/power/domain.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index b910d0f6ff60..601e35b2fa71 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c | |||
@@ -1292,13 +1292,13 @@ static void pm_genpd_complete(struct device *dev) | |||
1292 | } | 1292 | } |
1293 | 1293 | ||
1294 | /** | 1294 | /** |
1295 | * pm_genpd_syscore_switch - Switch power during system core suspend or resume. | 1295 | * genpd_syscore_switch - Switch power during system core suspend or resume. |
1296 | * @dev: Device that normally is marked as "always on" to switch power for. | 1296 | * @dev: Device that normally is marked as "always on" to switch power for. |
1297 | * | 1297 | * |
1298 | * This routine may only be called during the system core (syscore) suspend or | 1298 | * This routine may only be called during the system core (syscore) suspend or |
1299 | * resume phase for devices whose "always on" flags are set. | 1299 | * resume phase for devices whose "always on" flags are set. |
1300 | */ | 1300 | */ |
1301 | void pm_genpd_syscore_switch(struct device *dev, bool suspend) | 1301 | static void genpd_syscore_switch(struct device *dev, bool suspend) |
1302 | { | 1302 | { |
1303 | struct generic_pm_domain *genpd; | 1303 | struct generic_pm_domain *genpd; |
1304 | 1304 | ||
@@ -1314,7 +1314,18 @@ void pm_genpd_syscore_switch(struct device *dev, bool suspend) | |||
1314 | genpd->suspended_count--; | 1314 | genpd->suspended_count--; |
1315 | } | 1315 | } |
1316 | } | 1316 | } |
1317 | EXPORT_SYMBOL_GPL(pm_genpd_syscore_switch); | 1317 | |
1318 | void pm_genpd_syscore_poweroff(struct device *dev) | ||
1319 | { | ||
1320 | genpd_syscore_switch(dev, true); | ||
1321 | } | ||
1322 | EXPORT_SYMBOL_GPL(pm_genpd_syscore_poweroff); | ||
1323 | |||
1324 | void pm_genpd_syscore_poweron(struct device *dev) | ||
1325 | { | ||
1326 | genpd_syscore_switch(dev, false); | ||
1327 | } | ||
1328 | EXPORT_SYMBOL_GPL(pm_genpd_syscore_poweron); | ||
1318 | 1329 | ||
1319 | #else | 1330 | #else |
1320 | 1331 | ||