linux_dsm_epyc7002/drivers/gpu/drm/amd/display/dc/dce120
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
..
dce120_hw_sequencer.c drm/amd/display: Remove old, misleading comment 2017-09-26 18:17:03 -04:00
dce120_hw_sequencer.h drm/amd/display: Flattening core_dc to dc 2017-09-26 18:16:40 -04:00
dce120_resource.c drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
dce120_resource.h drm/amd/display: Flattening core_dc to dc 2017-09-26 18:16:40 -04:00
dce120_timing_generator.c drm/amd/display: set drr during program timing. 2017-09-26 18:08:32 -04:00
dce120_timing_generator.h drm/amd/display: Add DCE12 core support 2017-09-26 17:19:19 -04:00
Makefile drm/amd/display: dce 8 - 12 mem_input refactor to new style 2017-09-26 18:07:12 -04:00