thermal: hisilicon: Handle return value of clk_prepare_enable
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 6 Jun 2017 09:34:46 +0000 (15:04 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Fri, 30 Jun 2017 23:46:10 +0000 (16:46 -0700)
commit919054fdfc8adf58c5512fe9872eb53ea0f5525d
treea37de28ea97e4309b711250711c573d2caf0e8c3
parente3bdc8d7623d5875403ad40443e7b049ae200fcd
thermal: hisilicon: Handle return value of clk_prepare_enable

clk_prepare_enable() can fail here and we must check its return value.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/hisi_thermal.c