commit | a969e163a4ac1b0cfa2dc7ab890aaa9ab092951c | [log] [tgz] |
---|---|---|
author | Rex Zhu <Rex.Zhu@amd.com> | Tue Dec 29 13:56:03 2015 +0800 |
committer | Alex Deucher <alexander.deucher@amd.com> | Fri Jan 08 15:39:23 2016 -0500 |
tree | e3efd3937e624d2e96cf5e5557fb9bbd376e0867 | |
parent | c15c8d70207d467bb4312d6ac5536c101246fdc6 [diff] |
drm/amd/powerplay: add powerplay valid check to avoid null point. (v2) In case CONFIG_DRM_AMD_POWERPLAY is defined and amdgpu.powerplay=0. some functions in powrplay can also be called by DAL. and the input parameter is *adev. if just check point not NULL was not enough and will lead to NULL point error. V2: AGD: rebase on upstream Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>