X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=drivers%2Fgpu%2Fdrm%2Famd%2Fpowerplay%2Fhwmgr%2Ftonga_processpptables.c;h=34f4bef3691f863ad581ea34697ccfc3d9628af9;hb=8c4e378e426d1b065a1e8d9f45b8bcc4905d3410;hp=ae216fe8547d6427339ffbdaba6203f27dc4af8b;hpb=fd3e14ffbd9ec7593ba4dafc9452a91373a4df05;p=deliverable%2Flinux.git diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_processpptables.c b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_processpptables.c index ae216fe8547d..34f4bef3691f 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_processpptables.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_processpptables.c @@ -168,7 +168,7 @@ static int get_vddc_lookup_table( kzalloc(table_size, GFP_KERNEL); if (NULL == table) - return -1; + return -ENOMEM; memset(table, 0x00, table_size); @@ -206,7 +206,7 @@ static int get_platform_power_management_table( (struct phm_ppt_v1_information *)(hwmgr->pptable); if (NULL == ptr) - return -1; + return -ENOMEM; ptr->ppm_design = atom_ppm_table->ucPpmDesign; @@ -327,7 +327,7 @@ static int get_valid_clk( table = (struct phm_clock_array *)kzalloc(table_size, GFP_KERNEL); if (NULL == table) - return -1; + return -ENOMEM; memset(table, 0x00, table_size); @@ -378,7 +378,7 @@ static int get_mclk_voltage_dependency_table( kzalloc(table_size, GFP_KERNEL); if (NULL == mclk_table) - return -1; + return -ENOMEM; memset(mclk_table, 0x00, table_size); @@ -421,7 +421,7 @@ static int get_sclk_voltage_dependency_table( kzalloc(table_size, GFP_KERNEL); if (NULL == sclk_table) - return -1; + return -ENOMEM; memset(sclk_table, 0x00, table_size); @@ -464,7 +464,7 @@ static int get_pcie_table( pcie_table = (phm_ppt_v1_pcie_table *)kzalloc(table_size, GFP_KERNEL); if (NULL == pcie_table) - return -1; + return -ENOMEM; memset(pcie_table, 0x00, table_size); @@ -506,14 +506,14 @@ static int get_cac_tdp_table( tdp_table = kzalloc(table_size, GFP_KERNEL); if (NULL == tdp_table) - return -1; + return -ENOMEM; memset(tdp_table, 0x00, table_size); hwmgr->dyn_state.cac_dtp_table = kzalloc(table_size, GFP_KERNEL); if (NULL == hwmgr->dyn_state.cac_dtp_table) - return -1; + return -ENOMEM; memset(hwmgr->dyn_state.cac_dtp_table, 0x00, table_size); @@ -614,7 +614,7 @@ static int get_mm_clock_voltage_table( kzalloc(table_size, GFP_KERNEL); if (NULL == mm_table) - return -1; + return -ENOMEM; memset(mm_table, 0x00, table_size); @@ -943,7 +943,7 @@ int tonga_pp_tables_initialize(struct pp_hwmgr *hwmgr) hwmgr->pptable = kzalloc(sizeof(struct phm_ppt_v1_information), GFP_KERNEL); PP_ASSERT_WITH_CODE((NULL != hwmgr->pptable), - "Failed to allocate hwmgr->pptable!", return -1); + "Failed to allocate hwmgr->pptable!", return -ENOMEM); memset(hwmgr->pptable, 0x00, sizeof(struct phm_ppt_v1_information));