linux/drivers/gpu/drm/amd/display/dc/bios
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
..
dce80
dce110
dce112 drm/amd/display: Add DCE12 bios parser support 2017-09-26 17:19:04 -04:00
bios_parser2.c drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
bios_parser2.h drm/amd/display: Add DCE12 bios parser support 2017-09-26 17:19:04 -04:00
bios_parser_helper.c
bios_parser_helper.h
bios_parser_interface.c drm/amd/display: Remove DCE12 guards 2017-09-26 17:19:36 -04:00
bios_parser_types_internal2.h drm/amd/display: Add DCE12 bios parser support 2017-09-26 17:19:04 -04:00
bios_parser_types_internal.h
bios_parser.c drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
bios_parser.h
command_table2.c drm/amd/display: Stop including atomfimrwareid.h directly 2017-09-26 18:17:03 -04:00
command_table2.h drm/amd/display: Add DCE12 bios parser support 2017-09-26 17:19:04 -04:00
command_table_helper2.c drm/amd/display: Stop including atomfimrwareid.h directly 2017-09-26 18:17:03 -04:00
command_table_helper2.h drm/amd/display: Add DCE12 bios parser support 2017-09-26 17:19:04 -04:00
command_table_helper.c drm/amd/display/dc: add DCE_VERSION for DCE8 APUs 2017-09-26 18:16:32 -04:00
command_table_helper.h
command_table.c drm/amd/display: remove dead code 2017-09-26 17:10:34 -04:00
command_table.h drm/amd/display: remove dead code 2017-09-26 17:10:34 -04:00
Makefile drm/amd/display: Remove DCE12 guards 2017-09-26 17:19:36 -04:00