File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1265,6 +1265,7 @@ static const struct x86_cpu_id rapl_ids[] __initconst = {
12651265 X86_MATCH_VFM (INTEL_SAPPHIRERAPIDS_X , & rapl_defaults_spr_server ),
12661266 X86_MATCH_VFM (INTEL_EMERALDRAPIDS_X , & rapl_defaults_spr_server ),
12671267 X86_MATCH_VFM (INTEL_LUNARLAKE_M , & rapl_defaults_core ),
1268+ X86_MATCH_VFM (INTEL_PANTHERLAKE_L , & rapl_defaults_core ),
12681269 X86_MATCH_VFM (INTEL_ARROWLAKE_H , & rapl_defaults_core ),
12691270 X86_MATCH_VFM (INTEL_ARROWLAKE , & rapl_defaults_core ),
12701271 X86_MATCH_VFM (INTEL_ARROWLAKE_U , & rapl_defaults_core ),
Original file line number Diff line number Diff line change @@ -627,8 +627,7 @@ struct powercap_control_type *powercap_register_control_type(
627627 dev_set_name (& control_type -> dev , "%s" , name );
628628 result = device_register (& control_type -> dev );
629629 if (result ) {
630- if (control_type -> allocated )
631- kfree (control_type );
630+ put_device (& control_type -> dev );
632631 return ERR_PTR (result );
633632 }
634633 idr_init (& control_type -> idr );
You can’t perform that action at this time.
0 commit comments