diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c index ca8b8bea..d433c9bb 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c | |||
@@ -234,7 +234,7 @@ static DEVICE_ATTR(ptimer_scale_factor, | |||
234 | ptimer_scale_factor_show, | 234 | ptimer_scale_factor_show, |
235 | NULL); | 235 | NULL); |
236 | 236 | ||
237 | #if defined(CONFIG_PM_RUNTIME) && defined(CONFIG_PM_GENERIC_DOMAINS) | 237 | #if defined(CONFIG_PM) && defined(CONFIG_PM_GENERIC_DOMAINS) |
238 | static ssize_t railgate_enable_store(struct device *dev, | 238 | static ssize_t railgate_enable_store(struct device *dev, |
239 | struct device_attribute *attr, const char *buf, size_t count) | 239 | struct device_attribute *attr, const char *buf, size_t count) |
240 | { | 240 | { |
@@ -651,7 +651,7 @@ static ssize_t fmax_at_vmin_safe_read(struct device *device, | |||
651 | 651 | ||
652 | static DEVICE_ATTR(fmax_at_vmin_safe, S_IRUGO, fmax_at_vmin_safe_read, NULL); | 652 | static DEVICE_ATTR(fmax_at_vmin_safe, S_IRUGO, fmax_at_vmin_safe_read, NULL); |
653 | 653 | ||
654 | #ifdef CONFIG_PM_RUNTIME | 654 | #ifdef CONFIG_PM |
655 | static ssize_t force_idle_store(struct device *device, | 655 | static ssize_t force_idle_store(struct device *device, |
656 | struct device_attribute *attr, const char *buf, size_t count) | 656 | struct device_attribute *attr, const char *buf, size_t count) |
657 | { | 657 | { |
@@ -775,7 +775,7 @@ void gk20a_remove_sysfs(struct device *dev) | |||
775 | device_remove_file(dev, &dev_attr_railgate_delay); | 775 | device_remove_file(dev, &dev_attr_railgate_delay); |
776 | device_remove_file(dev, &dev_attr_is_railgated); | 776 | device_remove_file(dev, &dev_attr_is_railgated); |
777 | device_remove_file(dev, &dev_attr_clockgate_delay); | 777 | device_remove_file(dev, &dev_attr_clockgate_delay); |
778 | #ifdef CONFIG_PM_RUNTIME | 778 | #ifdef CONFIG_PM |
779 | device_remove_file(dev, &dev_attr_force_idle); | 779 | device_remove_file(dev, &dev_attr_force_idle); |
780 | #if defined(CONFIG_PM_GENERIC_DOMAINS) | 780 | #if defined(CONFIG_PM_GENERIC_DOMAINS) |
781 | device_remove_file(dev, &dev_attr_railgate_enable); | 781 | device_remove_file(dev, &dev_attr_railgate_enable); |
@@ -815,7 +815,7 @@ void gk20a_create_sysfs(struct platform_device *dev) | |||
815 | error |= device_create_file(&dev->dev, &dev_attr_railgate_delay); | 815 | error |= device_create_file(&dev->dev, &dev_attr_railgate_delay); |
816 | error |= device_create_file(&dev->dev, &dev_attr_is_railgated); | 816 | error |= device_create_file(&dev->dev, &dev_attr_is_railgated); |
817 | error |= device_create_file(&dev->dev, &dev_attr_clockgate_delay); | 817 | error |= device_create_file(&dev->dev, &dev_attr_clockgate_delay); |
818 | #ifdef CONFIG_PM_RUNTIME | 818 | #ifdef CONFIG_PM |
819 | error |= device_create_file(&dev->dev, &dev_attr_force_idle); | 819 | error |= device_create_file(&dev->dev, &dev_attr_force_idle); |
820 | #if defined(CONFIG_PM_GENERIC_DOMAINS) | 820 | #if defined(CONFIG_PM_GENERIC_DOMAINS) |
821 | error |= device_create_file(&dev->dev, &dev_attr_railgate_enable); | 821 | error |= device_create_file(&dev->dev, &dev_attr_railgate_enable); |