OSDN Git Service

drm/amd/powerplay: fix no statements in function returning non-void
authorHawking Zhang <Hawking.Zhang@amd.com>
Fri, 21 Jun 2019 16:29:29 +0000 (11:29 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 23:59:31 +0000 (18:59 -0500)
Add missing return (rebase fix).

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/navi10_ppt.c

index 1df844d..c737725 100644 (file)
@@ -494,6 +494,8 @@ static int navi10_tables_init(struct smu_context *smu, struct smu_table *tables)
        SMU_TABLE_INIT(tables, SMU_TABLE_ACTIVITY_MONITOR_COEFF,
                       sizeof(DpmActivityMonitorCoeffInt_t), PAGE_SIZE,
                       AMDGPU_GEM_DOMAIN_VRAM);
+
+       return 0;
 }
 
 static int navi10_allocate_dpm_context(struct smu_context *smu)