From: Ulf Hansson Date: Wed, 9 May 2018 08:46:36 +0000 (+0200) Subject: PM / core: Drop unused internal inline functions for sysfs X-Git-Tag: v4.18-rc1~149^2~5^3~2^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=91eb88b027ecec00110f3c496899d389d2ab9850;p=thirdparty%2Fkernel%2Flinux.git PM / core: Drop unused internal inline functions for sysfs 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 Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/base/power/power.h b/drivers/base/power/power.h index 78bbb5da70af7..c511def48b486 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