drm/amd/powerplay: rewrite pp_sw_init to make code readable
authorHuang Rui <ray.huang@amd.com>
Mon, 9 May 2016 09:29:41 +0000 (17:29 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 May 2016 17:30:33 +0000 (13:30 -0400)
commitb4eeed590deeff13a53db641129f0301d70248f3
treee4823cfd7c02340a80082e43cbb8eed0a01eba34
parent67b1fcc9ac3f05660809e14cf76a046fc1cc7e41
drm/amd/powerplay: rewrite pp_sw_init to make code readable

Actually, pp_sw_init executes pptable_init and backend_init orderly if
they are initialized successfully. So rewrite it to make code more
readable.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amd_powerplay.c