drm/amdgpu/smu10: fix smu10_get_clock_by_type_with_voltage
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Jan 2020 17:42:57 +0000 (12:42 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:34:53 +0000 (08:34 +0100)
commit283a7289413b661981a73b28ceb39f458fed8e84
tree851d308d8cbe82b6636589578e6fd9f914539bcb
parent70e1e529159b93cfc9aa866e9412fac1a945f26f
drm/amdgpu/smu10: fix smu10_get_clock_by_type_with_voltage

[ Upstream commit 1064ad4aeef94f51ca230ac639a9e996fb7867a0 ]

Cull out 0 clocks to avoid a warning in DC.

Bug: https://gitlab.freedesktop.org/drm/amd/issues/963
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c