diff options
-rw-r--r-- | drivers/base/power/sysfs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/base/power/sysfs.c b/drivers/base/power/sysfs.c index 48be2ad4dd2c..b91dc6f1e914 100644 --- a/drivers/base/power/sysfs.c +++ b/drivers/base/power/sysfs.c | |||
@@ -474,6 +474,8 @@ static DEVICE_ATTR(runtime_enabled, 0444, rtpm_enabled_show, NULL); | |||
474 | 474 | ||
475 | #endif | 475 | #endif |
476 | 476 | ||
477 | #ifdef CONFIG_PM_SLEEP | ||
478 | |||
477 | static ssize_t async_show(struct device *dev, struct device_attribute *attr, | 479 | static ssize_t async_show(struct device *dev, struct device_attribute *attr, |
478 | char *buf) | 480 | char *buf) |
479 | { | 481 | { |
@@ -500,6 +502,8 @@ static ssize_t async_store(struct device *dev, struct device_attribute *attr, | |||
500 | } | 502 | } |
501 | 503 | ||
502 | static DEVICE_ATTR(async, 0644, async_show, async_store); | 504 | static DEVICE_ATTR(async, 0644, async_show, async_store); |
505 | |||
506 | #endif | ||
503 | #endif /* CONFIG_PM_ADVANCED_DEBUG */ | 507 | #endif /* CONFIG_PM_ADVANCED_DEBUG */ |
504 | 508 | ||
505 | static struct attribute *power_attrs[] = { | 509 | static struct attribute *power_attrs[] = { |