drm/amdgpu: check function points valid before use. (v3)
authorRex Zhu <Rex.Zhu@amd.com>
Wed, 22 Feb 2017 07:33:46 +0000 (15:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:53:41 +0000 (23:53 -0400)
commitc722865a19f97aa9f56aaa8665f87cbf1dbaf96a
tree8b518e2abc23bee791a6069c2922627f3fb6d1b8
parent5463545b9280093f4614049df2dfee3f9e662172
drm/amdgpu: check function points valid before use. (v3)

v2: agd: integrate Christian's comments.
v3: print error message if call fails

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c