Skip to content

Commit d971f0b

Browse files
Ulf Hanssonrafaeljw
authored andcommitted
PM / domains: Remove genpd_queue_power_off_work() API
There are no active users of this API. Let's remove it and if future needs shows up we could consider to have a get/put API instead. 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>
1 parent d47e646 commit d971f0b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎drivers/base/power/domain.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ static bool genpd_abort_poweroff(struct generic_pm_domain *genpd)
422422
* Queue up the execution of pm_genpd_poweroff() unless it's already been done
423423
* before.
424424
*/
425-
void genpd_queue_power_off_work(struct generic_pm_domain *genpd)
425+
static void genpd_queue_power_off_work(struct generic_pm_domain *genpd)
426426
{
427427
queue_work(pm_wq, &genpd->power_off_work);
428428
}
@@ -729,6 +729,9 @@ static inline int genpd_dev_pm_qos_notifier(struct notifier_block *nb,
729729
return NOTIFY_DONE;
730730
}
731731

732+
static inline void
733+
genpd_queue_power_off_work(struct generic_pm_domain *genpd) {}
734+
732735
static inline void genpd_power_off_work_fn(struct work_struct *work) {}
733736

734737
#define pm_genpd_runtime_suspend NULL

‎include/linux/pm_domain.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,8 @@ static inline int pm_genpd_name_add_device(const char *domain_name,
258258
}
259259

260260
#ifdef CONFIG_PM_GENERIC_DOMAINS_RUNTIME
261-
extern void genpd_queue_power_off_work(struct generic_pm_domain *genpd);
262261
extern void pm_genpd_poweroff_unused(void);
263262
#else
264-
static inline void genpd_queue_power_off_work(struct generic_pm_domain *gpd) {}
265263
static inline void pm_genpd_poweroff_unused(void) {}
266264
#endif
267265

0 commit comments

Comments
 (0)