linux_dsm_epyc7002/drivers/gpu/drm/amd/display/dc/dcn10
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
..
dcn10_dpp_cm_helper.c drm/amd/display: seperate dpp_cm_helper functions into new file 2017-09-26 18:17:32 -04:00
dcn10_dpp_cm_helper.h drm/amd/display: seperate dpp_cm_helper functions into new file 2017-09-26 18:17:32 -04:00
dcn10_dpp_cm.c drm/amd/display: remove output_format from ipp_setup 2017-09-26 18:17:35 -04:00
dcn10_dpp_dscl.c drm/amd/display: clean up header file includes 2017-09-26 18:17:13 -04:00
dcn10_dpp.c drm/amd/display: remove output_format from ipp_setup 2017-09-26 18:17:35 -04:00
dcn10_dpp.h drm/amd/display: Update DPP registers 2017-09-26 18:17:38 -04:00
dcn10_dwb.c drm/amd/display: move dwb registers to header file 2017-09-26 18:17:35 -04:00
dcn10_dwb.h drm/amd/display: move dwb registers to header file 2017-09-26 18:17:35 -04:00
dcn10_hw_sequencer.c drm/amd/display: Update include to bring in line with internal tree 2017-09-26 18:17:41 -04:00
dcn10_hw_sequencer.h drm/amd/display: Rename dc validate_context and current_context 2017-09-26 18:17:14 -04:00
dcn10_ipp.c drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
dcn10_ipp.h drm/amd/display: Add 2X Cursor Magnification Code 2017-09-26 18:17:37 -04:00
dcn10_mem_input.c drm/amd/display: DF C-state entry blocked when DPMS 2017-09-26 18:17:12 -04:00
dcn10_mem_input.h drm/amd/display: move vm registers to hwsequencer 2017-09-26 18:16:44 -04:00
dcn10_mpc.c drm/amd/display: Remove mpc from bios left over, keep double buffer disabled. 2017-09-26 18:17:12 -04:00
dcn10_mpc.h drm/amd/display: mpc block redesign 2017-09-26 18:15:49 -04:00
dcn10_opp.c drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
dcn10_opp.h drm/amd/display: move RGAM programming from opp to dpp 2017-09-26 18:15:34 -04:00
dcn10_resource.c drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
dcn10_resource.h drm/amd/display: Flattening core_dc to dc 2017-09-26 18:16:40 -04:00
dcn10_timing_generator.c drm/amd/display: Added negative check for vertical line start. 2017-09-26 18:17:26 -04:00
dcn10_timing_generator.h drm/amd/display: Get OTG info if OTG master enabled 2017-09-26 18:17:25 -04:00
Makefile drm/amd/display: seperate dpp_cm_helper functions into new file 2017-09-26 18:17:32 -04:00