提交 8b06d5b8 编写于 作者: M Mark Brown

spi/s3c64xx: Check that clock enables succeed on runtime resume

Signed-off-by: NMark Brown <broonie@linaro.org>
上级 67651b29
...@@ -1524,9 +1524,17 @@ static int s3c64xx_spi_runtime_resume(struct device *dev) ...@@ -1524,9 +1524,17 @@ static int s3c64xx_spi_runtime_resume(struct device *dev)
{ {
struct spi_master *master = dev_get_drvdata(dev); struct spi_master *master = dev_get_drvdata(dev);
struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master); struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master);
int ret;
clk_prepare_enable(sdd->src_clk); ret = clk_prepare_enable(sdd->src_clk);
clk_prepare_enable(sdd->clk); if (ret != 0)
return ret;
ret = clk_prepare_enable(sdd->clk);
if (ret != 0) {
clk_disable_unprepare(sdd->src_clk);
return ret;
}
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册