From: Alex Deucher Date: Tue, 11 Jun 2019 14:45:51 +0000 (-0500) Subject: drm/amdgpu: return 0 by default in amdgpu_pm_load_smu_firmware X-Git-Tag: v5.15~5873^2~13^2~499 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0079f82e710caf3e821267917af9517ac0fca83d;p=platform%2Fkernel%2Flinux-starfive.git drm/amdgpu: return 0 by default in amdgpu_pm_load_smu_firmware Fixes SI cards running on amdgpu. Fixes: 1929059893022 ("drm/amd/amdgpu: add RLC firmware to support raven1 refresh") Bug: https://bugs.freedesktop.org/show_bug.cgi?id=110883 Reviewed-by: Evan Quan Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c index 71176f9..1705081 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c @@ -2753,7 +2753,7 @@ void amdgpu_pm_virt_sysfs_fini(struct amdgpu_device *adev) int amdgpu_pm_load_smu_firmware(struct amdgpu_device *adev, uint32_t *smu_version) { - int r = -EINVAL; + int r; if (amdgpu_sriov_vf(adev)) return 0; @@ -2766,7 +2766,7 @@ int amdgpu_pm_load_smu_firmware(struct amdgpu_device *adev, uint32_t *smu_versio } *smu_version = adev->pm.fw_version; } - return r; + return 0; } int amdgpu_pm_sysfs_init(struct amdgpu_device *adev)