]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/amdgpu: No sysfs, not an error condition
authorLuben Tuikov <luben.tuikov@amd.com>
Wed, 16 Sep 2020 17:03:50 +0000 (13:03 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Nov 2020 10:51:22 +0000 (11:51 +0100)
[ Upstream commit 5aea5327ea2ddf544cbeff096f45fc2319b0714e ]

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>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index d0b8d0d341af5398e38a3d2d007b5c681a85f48c..2576c299958c5fef512a6fa01b06dacd08eca3d0 100644 (file)
@@ -3316,10 +3316,8 @@ fence_driver_init:
                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);