drm/radeon: unconditionally set sysfs_initialized
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Nov 2015 18:01:35 +0000 (13:01 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Nov 2015 16:05:53 +0000 (11:05 -0500)
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
drivers/gpu/drm/radeon/radeon_pm.c

index 6d80dde..f4f03dc 100644 (file)
@@ -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);