drm/amdgpu: optimize amdgpu_parser_init
authormonk.liu <monk.liu@amd.com>
Fri, 17 Jul 2015 10:39:25 +0000 (18:39 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Aug 2015 20:50:22 +0000 (16:50 -0400)
commite60b344f6c0eff03362b5083db746ef5442c4b36
tree7973e249113218e776978be20a6e5ffe375ce6cd
parent2f7d10b393c83acd3eedc3d6ab94dce29ac6a890
drm/amdgpu: optimize amdgpu_parser_init

use kmalloc_array instead of kcalloc where appropriate and other
cleanups.

Signed-off-by: monk.liu <monk.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c