File tree Expand file tree Collapse file tree 2 files changed +0
-20
lines changed
drivers/gpu/drm/amd/pm/swsmu Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -295,16 +295,6 @@ static int arcturus_allocate_dpm_context(struct smu_context *smu)
295
295
return - ENOMEM ;
296
296
smu_dpm -> dpm_context_size = sizeof (struct smu_11_0_dpm_context );
297
297
298
- smu_dpm -> dpm_current_power_state = kzalloc (sizeof (struct smu_power_state ),
299
- GFP_KERNEL );
300
- if (!smu_dpm -> dpm_current_power_state )
301
- return - ENOMEM ;
302
-
303
- smu_dpm -> dpm_request_power_state = kzalloc (sizeof (struct smu_power_state ),
304
- GFP_KERNEL );
305
- if (!smu_dpm -> dpm_request_power_state )
306
- return - ENOMEM ;
307
-
308
298
return 0 ;
309
299
}
310
300
Original file line number Diff line number Diff line change @@ -262,16 +262,6 @@ static int aldebaran_allocate_dpm_context(struct smu_context *smu)
262
262
return - ENOMEM ;
263
263
smu_dpm -> dpm_context_size = sizeof (struct smu_13_0_dpm_context );
264
264
265
- smu_dpm -> dpm_current_power_state = kzalloc (sizeof (struct smu_power_state ),
266
- GFP_KERNEL );
267
- if (!smu_dpm -> dpm_current_power_state )
268
- return - ENOMEM ;
269
-
270
- smu_dpm -> dpm_request_power_state = kzalloc (sizeof (struct smu_power_state ),
271
- GFP_KERNEL );
272
- if (!smu_dpm -> dpm_request_power_state )
273
- return - ENOMEM ;
274
-
275
265
return 0 ;
276
266
}
277
267
You can’t perform that action at this time.
0 commit comments