memory: mtk-smi: Handle return value of clk_prepare_enable
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Thu, 10 Aug 2017 05:17:32 +0000 (10:47 +0530)
committerJoerg Roedel <jroedel@suse.de>
Tue, 15 Aug 2017 15:46:23 +0000 (17:46 +0200)
commit46cc815d6d8c3c9dd18ffae1e3e818eb3ce2c788
tree6ad2fac75e85f4ee67aa4d2e91aaaa88af475f5d
parent611de8fcf7f62718bcf9d0469ac84d66e6d89348
memory: mtk-smi: 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: Joerg Roedel <jroedel@suse.de>
drivers/memory/mtk-smi.c