drm/amdgpu/vcn:Fix uninitialized symbol error
authorJames Zhu <James.Zhu@amd.com>
Tue, 16 Oct 2018 14:06:00 +0000 (10:06 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Oct 2018 21:13:07 +0000 (16:13 -0500)
commit8e16695b4eb819881774b8c06eb164dc1fb74275
treed83ba41f4b54d0429879a619ca238ad980eade82
parentd344b21bf405eed05963627bfed6dd3df422623c
drm/amdgpu/vcn:Fix uninitialized symbol error

ret_code should be initialized with 0. The check of read/write
ptr should be activate when UVD_POWER_STATUS_TILES is off.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c