Skip to content

Commit b0cd0b4

Browse files
Luben Tuikovgregkh
authored andcommitted
drm/amdgpu: No sysfs, not an error condition
[ Upstream commit 5aea532 ] Not being able to create amdgpu sysfs attributes is not a fatal error warranting not to continue to try to bring up the display. Thus, if we get an error trying to create amdgpu sysfs attrs, report it and continue on to try to bring up a display. Signed-off-by: Luben Tuikov <luben.tuikov@amd.com> Acked-by: Slava Abramov <slava.abramov@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent fc5382d commit b0cd0b4

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3316,10 +3316,8 @@ int amdgpu_device_init(struct amdgpu_device *adev,
33163316
flush_delayed_work(&adev->delayed_init_work);
33173317

33183318
r = sysfs_create_files(&adev->dev->kobj, amdgpu_dev_attributes);
3319-
if (r) {
3319+
if (r)
33203320
dev_err(adev->dev, "Could not create amdgpu device attr\n");
3321-
return r;
3322-
}
33233321

33243322
if (IS_ENABLED(CONFIG_PERF_EVENTS))
33253323
r = amdgpu_pmu_init(adev);

0 commit comments

Comments
 (0)