diff mbox series

[2/4] PM / core: Drop unused internal inline functions for wakeirqs

Message ID 1525855596-18116-3-git-send-email-ulf.hansson@linaro.org
State Accepted
Commit ff5f078e20dc67811b94a3bce5dee23f668068d1
Headers show
Series PM / core: Remove unused functions from power.h | expand

Commit Message

Ulf Hansson May 9, 2018, 8:46 a.m. UTC
The inline versions of dev_pm_arm|disarm_wake_irq() and
dev_pm_enable|disable_wake_irq_check() are not being used while CONFIG_PM
is unset, hence let's drop them.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

---
 drivers/base/power/power.h | 17 -----------------
 1 file changed, 17 deletions(-)

-- 
2.7.4

Comments

Tony Lindgren May 9, 2018, 2:30 p.m. UTC | #1
* Ulf Hansson <ulf.hansson@linaro.org> [180509 08:48]:
> The inline versions of dev_pm_arm|disarm_wake_irq() and

> dev_pm_enable|disable_wake_irq_check() are not being used while CONFIG_PM

> is unset, hence let's drop them.


This too:

Acked-by: Tony Lindgren <tony@atomide.com>
diff mbox series

Patch

diff --git a/drivers/base/power/power.h b/drivers/base/power/power.h
index f38d178..be40910 100644
--- a/drivers/base/power/power.h
+++ b/drivers/base/power/power.h
@@ -93,23 +93,6 @@  static inline void wakeup_sysfs_remove(struct device *dev) {}
 static inline int pm_qos_sysfs_add(struct device *dev) { return 0; }
 static inline void pm_qos_sysfs_remove(struct device *dev) {}
 
-static inline void dev_pm_arm_wake_irq(struct wake_irq *wirq)
-{
-}
-
-static inline void dev_pm_disarm_wake_irq(struct wake_irq *wirq)
-{
-}
-
-static inline void dev_pm_enable_wake_irq_check(struct device *dev,
-						bool can_change_status)
-{
-}
-
-static inline void dev_pm_disable_wake_irq_check(struct device *dev)
-{
-}
-
 #endif
 
 #ifdef CONFIG_PM_SLEEP