diff options
| -rw-r--r-- | drivers/gpu/drm/i915/i915_sysfs.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_sysfs.c b/drivers/gpu/drm/i915/i915_sysfs.c index 2f5388af8df9..7631807a2788 100644 --- a/drivers/gpu/drm/i915/i915_sysfs.c +++ b/drivers/gpu/drm/i915/i915_sysfs.c | |||
| @@ -32,6 +32,7 @@ | |||
| 32 | #include "intel_drv.h" | 32 | #include "intel_drv.h" |
| 33 | #include "i915_drv.h" | 33 | #include "i915_drv.h" |
| 34 | 34 | ||
| 35 | #ifdef CONFIG_PM | ||
| 35 | static u32 calc_residency(struct drm_device *dev, const u32 reg) | 36 | static u32 calc_residency(struct drm_device *dev, const u32 reg) |
| 36 | { | 37 | { |
| 37 | struct drm_i915_private *dev_priv = dev->dev_private; | 38 | struct drm_i915_private *dev_priv = dev->dev_private; |
| @@ -224,3 +225,14 @@ void i915_teardown_sysfs(struct drm_device *dev) | |||
| 224 | device_remove_bin_file(&dev->primary->kdev, &dpf_attrs); | 225 | device_remove_bin_file(&dev->primary->kdev, &dpf_attrs); |
| 225 | sysfs_unmerge_group(&dev->primary->kdev.kobj, &rc6_attr_group); | 226 | sysfs_unmerge_group(&dev->primary->kdev.kobj, &rc6_attr_group); |
| 226 | } | 227 | } |
| 228 | #else | ||
| 229 | void i915_setup_sysfs(struct drm_device *dev) | ||
| 230 | { | ||
| 231 | return; | ||
| 232 | } | ||
| 233 | |||
| 234 | void i915_teardown_sysfs(struct drm_device *dev) | ||
| 235 | { | ||
| 236 | return; | ||
| 237 | } | ||
| 238 | #endif /* CONFIG_PM */ | ||
