diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2018-05-29 06:04:14 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-05-30 07:51:51 -0400 |
commit | 1a7a67072f35b3e65e76fc694b088ca48b4dae35 (patch) | |
tree | c6f07dba4be53706dcfed4f2fb4e4a8380b30948 /drivers | |
parent | 781b9d6b84324b47e316a233433fa2c179cb1ee5 (diff) |
PM / Domains: Drop __pm_genpd_add_device()
There are still a few non-DT existing users of genpd, however neither of
them uses __pm_genpd_add_device(), hence let's drop it.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/base/power/domain.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 166259053f8d..2bb67e4f6280 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c | |||
@@ -1414,23 +1414,21 @@ static int genpd_add_device(struct generic_pm_domain *genpd, struct device *dev, | |||
1414 | } | 1414 | } |
1415 | 1415 | ||
1416 | /** | 1416 | /** |
1417 | * __pm_genpd_add_device - Add a device to an I/O PM domain. | 1417 | * pm_genpd_add_device - Add a device to an I/O PM domain. |
1418 | * @genpd: PM domain to add the device to. | 1418 | * @genpd: PM domain to add the device to. |
1419 | * @dev: Device to be added. | 1419 | * @dev: Device to be added. |
1420 | * @td: Set of PM QoS timing parameters to attach to the device. | ||
1421 | */ | 1420 | */ |
1422 | int __pm_genpd_add_device(struct generic_pm_domain *genpd, struct device *dev, | 1421 | int pm_genpd_add_device(struct generic_pm_domain *genpd, struct device *dev) |
1423 | struct gpd_timing_data *td) | ||
1424 | { | 1422 | { |
1425 | int ret; | 1423 | int ret; |
1426 | 1424 | ||
1427 | mutex_lock(&gpd_list_lock); | 1425 | mutex_lock(&gpd_list_lock); |
1428 | ret = genpd_add_device(genpd, dev, td); | 1426 | ret = genpd_add_device(genpd, dev, NULL); |
1429 | mutex_unlock(&gpd_list_lock); | 1427 | mutex_unlock(&gpd_list_lock); |
1430 | 1428 | ||
1431 | return ret; | 1429 | return ret; |
1432 | } | 1430 | } |
1433 | EXPORT_SYMBOL_GPL(__pm_genpd_add_device); | 1431 | EXPORT_SYMBOL_GPL(pm_genpd_add_device); |
1434 | 1432 | ||
1435 | static int genpd_remove_device(struct generic_pm_domain *genpd, | 1433 | static int genpd_remove_device(struct generic_pm_domain *genpd, |
1436 | struct device *dev) | 1434 | struct device *dev) |