提交 05b96675 编写于 作者: S Sourav Poddar 提交者: Mark Brown

spi/qspi: cleanup pm_runtime error check.

clean up pm_runtime error check in accordance with rest of the check in
the driver.
Signed-off-by: NSourav Poddar <sourav.poddar@ti.com>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 160a0613
...@@ -161,7 +161,7 @@ static int ti_qspi_setup(struct spi_device *spi) ...@@ -161,7 +161,7 @@ static int ti_qspi_setup(struct spi_device *spi)
qspi->spi_max_frequency, clk_div); qspi->spi_max_frequency, clk_div);
ret = pm_runtime_get_sync(qspi->dev); ret = pm_runtime_get_sync(qspi->dev);
if (ret) { if (ret < 0) {
dev_err(qspi->dev, "pm_runtime_get_sync() failed\n"); dev_err(qspi->dev, "pm_runtime_get_sync() failed\n");
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册