summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2015-11-10 19:01:35 +0100
committerAlex Deucher <alexander.deucher@amd.com>2015-11-16 17:05:53 +0100
commit24dd2f64c5a877392925202321c7c2c46c2b0ddf (patch)
treee73e47607c98ec56d0021205b7f18a2e670617a6 /drivers/gpu/drm/radeon
parentdrm/amdgpu: cleanup amdgpu_cs_parser handling (diff)
downloadlinux-24dd2f64c5a877392925202321c7c2c46c2b0ddf.tar.xz
linux-24dd2f64c5a877392925202321c7c2c46c2b0ddf.zip
drm/radeon: unconditionally set sysfs_initialized
Avoids spew on resume for systems where sysfs may fail even on init. bug: https://bugzilla.kernel.org/show_bug.cgi?id=106851 Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/radeon')
-rw-r--r--drivers/gpu/drm/radeon/radeon_pm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b/drivers/gpu/drm/radeon/radeon_pm.c
index 6d80dde23400..f4f03dcc1530 100644
--- a/drivers/gpu/drm/radeon/radeon_pm.c
+++ b/drivers/gpu/drm/radeon/radeon_pm.c
@@ -1542,8 +1542,7 @@ int radeon_pm_late_init(struct radeon_device *rdev)
ret = device_create_file(rdev->dev, &dev_attr_power_method);
if (ret)
DRM_ERROR("failed to create device file for power method\n");
- if (!ret)
- rdev->pm.sysfs_initialized = true;
+ rdev->pm.sysfs_initialized = true;
}
mutex_lock(&rdev->pm.mutex);