diff mbox series

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

Message ID 1525855596-18116-5-git-send-email-ulf.hansson@linaro.org
State Accepted
Commit 91eb88b027ecec00110f3c496899d389d2ab9850
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 rpm_sysfs_remove() and wakeup_sysfs_add|remove(),
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 | 3 ---
 1 file changed, 3 deletions(-)

-- 
2.7.4
diff mbox series

Patch

diff --git a/drivers/base/power/power.h b/drivers/base/power/power.h
index 78bbb5d..c511def 100644
--- a/drivers/base/power/power.h
+++ b/drivers/base/power/power.h
@@ -87,9 +87,6 @@  static inline void pm_runtime_remove(struct device *dev) {}
 
 static inline int dpm_sysfs_add(struct device *dev) { return 0; }
 static inline void dpm_sysfs_remove(struct device *dev) {}
-static inline void rpm_sysfs_remove(struct device *dev) {}
-static inline int wakeup_sysfs_add(struct device *dev) { return 0; }
-static inline void wakeup_sysfs_remove(struct device *dev) {}
 
 #endif