Commit 24dd2f64 authored by Alex Deucher's avatar Alex Deucher

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=106851Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent 7e52a81c
...@@ -1542,8 +1542,7 @@ int radeon_pm_late_init(struct radeon_device *rdev) ...@@ -1542,8 +1542,7 @@ int radeon_pm_late_init(struct radeon_device *rdev)
ret = device_create_file(rdev->dev, &dev_attr_power_method); ret = device_create_file(rdev->dev, &dev_attr_power_method);
if (ret) if (ret)
DRM_ERROR("failed to create device file for power method\n"); 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); mutex_lock(&rdev->pm.mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment