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
This commit is contained in:
Родитель
7e52a81c2f
Коммит
24dd2f64c5
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче