]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: consolidate si uvd initialization and startup code.
authorJérome Glisse <jglisse@redhat.com>
Fri, 18 Mar 2016 15:58:30 +0000 (16:58 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 May 2016 17:08:49 +0000 (13:08 -0400)
commitb3bc958a2eff460a6b26ee196ae2855624c75bc7
tree849af6d37d9d77e62cc106343a1ff90169aeb31f
parenta2447d1c67999641c176211ab26d173432165aa4
drm/radeon: consolidate si uvd initialization and startup code.

This match the exact same control flow as existing code. It just
use goto instead of multiple levels of if/else. It also clarify
early initialization failures by clearing rdev->has_uvd doing so
does not change end result from hardware point of view, it only
avoids printing more error messages down the line and thus only
the original error is reported.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/si.c