]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit56e309889bcb7992b564dceefe758e768c31386d
treee4823cfd7c02340a80082e43cbb8eed0a01eba34
parent4ab79d85c89c9a4cf92c5f5b4f26081b5667f5f6
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