hwspinlock: sprd: Check the return value of clk_prepare_enable()
authorBaolin Wang <baolin.wang@linaro.org>
Fri, 27 Sep 2019 07:10:45 +0000 (15:10 +0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sat, 5 Oct 2019 04:07:44 +0000 (21:07 -0700)
commit3070c41643609c66d33de3577fc9d8ca15932513
tree20c8dc5faf26a4e2804167efbca18cad82043dd4
parent74cfa956cbead238cf6c5307be461a087c569c97
hwspinlock: sprd: Check the return value of clk_prepare_enable()

We must check the return value of clk_prepare_enable() to make sure the
hardware spinlock controller can be enabled successfully, otherwise we
should return error.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/hwspinlock/sprd_hwspinlock.c