mmc: davinci_mmc: Handle error for clk_enable
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Tue, 8 Mar 2022 07:14:15 +0000 (15:14 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 15 Mar 2022 09:29:53 +0000 (10:29 +0100)
commit09e7af76db02c74f2a339b3cb2d95460fa2ddbe4
tree8d7a2d5ac4c061828722ef4afdff0de031466698
parentd607667bb8fa2811679ed2c8a5b09d0d4da8c5b9
mmc: davinci_mmc: Handle error for clk_enable

As the potential failure of the clk_enable(),
it should be better to check it and return error
if fails.

Fixes: bbce5802afc5 ("davinci: mmc: updates to suspend/resume implementation")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20220308071415.1093393-1-jiasheng@iscas.ac.cn
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/davinci_mmc.c