aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/power/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/power/main.c')
-rw-r--r--kernel/power/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/kernel/power/main.c b/kernel/power/main.c
index 84e1ae63bb8c..fc717b836828 100644
--- a/kernel/power/main.c
+++ b/kernel/power/main.c
@@ -53,7 +53,8 @@ static const char * const pm_tests[__TEST_AFTER_LAST] = {
53 [TEST_FREEZER] = "freezer", 53 [TEST_FREEZER] = "freezer",
54}; 54};
55 55
56static ssize_t pm_test_show(struct kset *kset, char *buf) 56static ssize_t pm_test_show(struct kobject *kobj, struct kobj_attribute *attr,
57 char *buf)
57{ 58{
58 char *s = buf; 59 char *s = buf;
59 int level; 60 int level;
@@ -73,7 +74,8 @@ static ssize_t pm_test_show(struct kset *kset, char *buf)
73 return (s - buf); 74 return (s - buf);
74} 75}
75 76
76static ssize_t pm_test_store(struct kset *kset, const char *buf, size_t n) 77static ssize_t pm_test_store(struct kobject *kobj, struct kobj_attribute *attr,
78 const char *buf, size_t n)
77{ 79{
78 const char * const *s; 80 const char * const *s;
79 int level; 81 int level;
@@ -104,6 +106,7 @@ power_attr(pm_test);
104static inline int suspend_test(int level) { return 0; } 106static inline int suspend_test(int level) { return 0; }
105#endif /* !CONFIG_PM_DEBUG */ 107#endif /* !CONFIG_PM_DEBUG */
106 108
109
107#ifdef CONFIG_SUSPEND 110#ifdef CONFIG_SUSPEND
108 111
109/* This is just an arbitrary number */ 112/* This is just an arbitrary number */