drm/amdgpu: Fix missing error code in 'gmc_v6/7/8/9_0_hw_init()'

[ Upstream commit 16da399091dca3d1e48109086403587af37cc196 ]

Return 0 for success scenairos in 'gmc_v6/7/8/9_0_hw_init()'

Fixes the below:
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c:920 gmc_v6_0_hw_init() warn: missing error code? 'r'
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c:1104 gmc_v7_0_hw_init() warn: missing error code? 'r'
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c:1224 gmc_v8_0_hw_init() warn: missing error code? 'r'
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:2347 gmc_v9_0_hw_init() warn: missing error code? 'r'

Fixes: fac4ebd79fed ("drm/amdgpu: Fix with right return code '-EIO' in 'amdgpu_gmc_vram_checking()'")
Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Srinivasan Shanmugam 2024-01-30 12:10:38 +05:30 committed by Greg Kroah-Hartman
parent f086c50a98
commit d78690bb5d
4 changed files with 8 additions and 8 deletions

View File

@ -921,8 +921,8 @@ static int gmc_v6_0_hw_init(void *handle)
if (amdgpu_emu_mode == 1) if (amdgpu_emu_mode == 1)
return amdgpu_gmc_vram_checking(adev); return amdgpu_gmc_vram_checking(adev);
else
return r; return 0;
} }
static int gmc_v6_0_hw_fini(void *handle) static int gmc_v6_0_hw_fini(void *handle)

View File

@ -1110,8 +1110,8 @@ static int gmc_v7_0_hw_init(void *handle)
if (amdgpu_emu_mode == 1) if (amdgpu_emu_mode == 1)
return amdgpu_gmc_vram_checking(adev); return amdgpu_gmc_vram_checking(adev);
else
return r; return 0;
} }
static int gmc_v7_0_hw_fini(void *handle) static int gmc_v7_0_hw_fini(void *handle)

View File

@ -1240,8 +1240,8 @@ static int gmc_v8_0_hw_init(void *handle)
if (amdgpu_emu_mode == 1) if (amdgpu_emu_mode == 1)
return amdgpu_gmc_vram_checking(adev); return amdgpu_gmc_vram_checking(adev);
else
return r; return 0;
} }
static int gmc_v8_0_hw_fini(void *handle) static int gmc_v8_0_hw_fini(void *handle)

View File

@ -1861,8 +1861,8 @@ static int gmc_v9_0_hw_init(void *handle)
if (amdgpu_emu_mode == 1) if (amdgpu_emu_mode == 1)
return amdgpu_gmc_vram_checking(adev); return amdgpu_gmc_vram_checking(adev);
else
return r; return 0;
} }
/** /**