drm/amd/pp: Clean header file in vega12_smumgr.c
authorRex Zhu <Rex.Zhu@amd.com>
Tue, 27 Mar 2018 10:29:41 +0000 (18:29 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Apr 2018 17:52:57 +0000 (12:52 -0500)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
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/vega12_smumgr.c

index 55cd204c17890a287d9b1a53f877b4e9c4dc0ce8..651a3f28734bcb40d90102c0ae90e4ee1cf825d1 100644 (file)
@@ -30,8 +30,7 @@
 
 #include "ppatomctrl.h"
 #include "pp_debug.h"
-#include "smu_ucode_xfer_vi.h"
-#include "smu7_smumgr.h"
+
 
 /* MP Apertures */
 #define MP0_Public                  0x03800000
@@ -392,8 +391,7 @@ static int vega12_smu_init(struct pp_hwmgr *hwmgr)
        struct cgs_firmware_info info = {0};
        int ret;
 
-       ret = cgs_get_firmware_info(hwmgr->device,
-                               smu7_convert_fw_type_to_cgs(UCODE_ID_SMU),
+       ret = cgs_get_firmware_info(hwmgr->device, CGS_UCODE_ID_SMU,
                                &info);
        if (ret || !info.kptr)
                return -EINVAL;