drm/amdgpu: add check for callback
authorChunming Zhou <david1.zhou@amd.com>
Tue, 28 Jul 2015 08:11:52 +0000 (16:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Aug 2015 20:50:39 +0000 (16:50 -0400)
commitafe10081498fdf2c5b92c7fcc534e49544218fb9
tree009b6a88562bb3ce54082c77792d33f5371d841c
parent02b9f0bfd49da01629eef6d250c477490047acd6
drm/amdgpu: add check for callback

it is possible that the callback isn't defined sometimes.

Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian K?nig <christian.koenig@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c