diff options
-rw-r--r-- | drivers/gpu/drm/i915/i915_sysfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_sysfs.c b/drivers/gpu/drm/i915/i915_sysfs.c index a25351519397..903eebd2117a 100644 --- a/drivers/gpu/drm/i915/i915_sysfs.c +++ b/drivers/gpu/drm/i915/i915_sysfs.c | |||
@@ -410,5 +410,7 @@ void i915_teardown_sysfs(struct drm_device *dev) | |||
410 | { | 410 | { |
411 | sysfs_remove_files(&dev->primary->kdev.kobj, gen6_attrs); | 411 | sysfs_remove_files(&dev->primary->kdev.kobj, gen6_attrs); |
412 | device_remove_bin_file(&dev->primary->kdev, &dpf_attrs); | 412 | device_remove_bin_file(&dev->primary->kdev, &dpf_attrs); |
413 | #ifdef CONFIG_PM | ||
413 | sysfs_unmerge_group(&dev->primary->kdev.kobj, &rc6_attr_group); | 414 | sysfs_unmerge_group(&dev->primary->kdev.kobj, &rc6_attr_group); |
415 | #endif | ||
414 | } | 416 | } |