arch_topology: Fix putting invalid cpu clk
commit4dfff3d55440a9f8726a0f7d62a9c33594b58b10
authorJeffy Chen <jeffy.chen@rock-chips.com>
Tue, 17 Mar 2020 06:33:08 +0000 (17 14:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2020 10:41:54 +0000 (18 11:41 +0100)
treeeed11a0193821720ee31e5a5a9f4d2c6927b6036
parent4a33691c4cea9eb0a7c66e87248be4637e14b180
arch_topology: Fix putting invalid cpu clk

Add a sanity check before putting the cpu clk.

Fixes: b8fe128dad8f (“arch_topology: Adjust initial CPU capacities with current freq")
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Link: https://lore.kernel.org/r/20200317063308.23209-1-jeffy.chen@rock-chips.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/arch_topology.c