]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/radeon: consolidate evergreen uvd initialization and startup code.
authorJérome Glisse <jglisse@redhat.com>
Fri, 18 Mar 2016 15:58:28 +0000 (16:58 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 May 2016 17:08:48 +0000 (13:08 -0400)
commitd78d6f3978ef5f8c365627e2ca2e87583cb74f1e
tree53a71b9dffb38611b09159afbea1dbdb966348e2
parent66ecfcec6b65f3dccaa249ac2a8c0e8673effa05
drm/radeon: consolidate evergreen 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/evergreen.c