drm/amd/pp: Fix function parameter not correct
authorRex Zhu <Rex.Zhu@amd.com>
Tue, 13 Mar 2018 05:40:00 +0000 (13:40 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Mar 2018 14:57:02 +0000 (09:57 -0500)
caused by "commit dcefb7668e5b4fb56099b16d1790cd3056322b03"

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.c

index 5dbef41..3dec481 100644 (file)
@@ -234,10 +234,10 @@ static int rv_smu_fini(struct pp_hwmgr *hwmgr)
                rv_smc_disable_vcn(hwmgr);
                amdgpu_bo_free_kernel(&priv->smu_tables.entry[SMU10_WMTABLE].handle,
                                        &priv->smu_tables.entry[SMU10_WMTABLE].mc_addr,
-                                       priv->smu_tables.entry[SMU10_WMTABLE].table);
+                                       &priv->smu_tables.entry[SMU10_WMTABLE].table);
                amdgpu_bo_free_kernel(&priv->smu_tables.entry[SMU10_CLOCKTABLE].handle,
                                        &priv->smu_tables.entry[SMU10_CLOCKTABLE].mc_addr,
-                                       priv->smu_tables.entry[SMU10_CLOCKTABLE].table);
+                                       &priv->smu_tables.entry[SMU10_CLOCKTABLE].table);
                kfree(hwmgr->smu_backend);
                hwmgr->smu_backend = NULL;
        }