linux_dsm_epyc7002/drivers/gpu/drm/amd/display/dc
Harry Wentland 2004f45ef8 drm/amd/display: Use kernel alloc/free
Abstractions are frowned upon.

cocci script:
virtual context
virtual patch
virtual org
virtual report

@@
expression ptr;
@@

- dm_alloc(ptr)
+ kzalloc(ptr, GFP_KERNEL)

@@
expression ptr, size;
@@

- dm_realloc(ptr, size)
+ krealloc(ptr, size, GFP_KERNEL)

@@
expression ptr;
@@

- dm_free(ptr)
+ kfree(ptr)

v2: use GFP_KERNEL, not GFP_ATOMIC. add cocci script

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2017-09-28 16:46:15 -04:00
..
basics drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
bios drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
calcs drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
core drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
dce drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
dce80 drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
dce100 drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
dce110 drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
dce112 drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
dce120 drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
dcn10 drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
dml drm/amdgpu/display: Add dml support for DCN 2017-09-26 18:06:49 -04:00
gpio drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
i2caux drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
inc drm/amd/display: No need to keep track of unreffed clk sources 2017-09-26 18:17:36 -04:00
irq drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
virtual drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
dc_bios_types.h drm/amd/display: Rename firmware_info to dc_firmware_info 2017-09-26 18:15:51 -04:00
dc_ddc_types.h drm/amd/display: Roll core_link into dc_link 2017-09-26 18:15:36 -04:00
dc_dp_types.h drm/amd/display: USB-c DP-HDMI dongle shows garbage on Sony TV 2017-09-26 18:06:35 -04:00
dc_helper.c drm/amd/display: use some sensible time out 2017-09-26 18:16:23 -04:00
dc_hw_types.h drm/amd/display: Use atomic types for ref_count 2017-09-26 18:16:36 -04:00
dc_types.h drm/amd/display: Rename dc_stream to dc_stream_state 2017-09-26 18:16:04 -04:00
dc.h drm/amd/display: Pass log_mask from DM 2017-09-26 18:17:43 -04:00
dm_helpers.h drm/amd/display: Implement HDMI retimer settings for RV AM4 support. 2017-09-26 18:16:45 -04:00
dm_pp_smu.h drm/amd/display: refactor pplib/smu communication 2017-09-26 18:16:46 -04:00
dm_services_types.h drm/amd/display: refactor pplib/smu communication 2017-09-26 18:16:46 -04:00
dm_services.h drm/amd/display: refactor pplib/smu communication 2017-09-26 18:16:46 -04:00
irq_types.h drm/amd/display: Add interrupt entries for VBLANK isr. 2017-09-26 17:11:12 -04:00
Makefile drm/amdgpu/display: Enable DCN in DC 2017-09-26 18:06:51 -04:00
os_types.h drm/amd/display: drop min/max wrappers 2017-09-26 17:09:23 -04:00