Skip to content

Commit

Permalink
drm/amdgpu: No sysfs, not an error condition
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luben Tuikov authored and Alex Deucher committed Sep 17, 2020
1 parent 24b763d commit 5aea532
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -3400,10 +3400,8 @@ int amdgpu_device_init(struct amdgpu_device *adev,
flush_delayed_work(&adev->delayed_init_work);

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

if (IS_ENABLED(CONFIG_PERF_EVENTS))
r = amdgpu_pmu_init(adev);
Expand Down

0 comments on commit 5aea532

Please sign in to comment.