diff options
author | Sourav Poddar <sourav.poddar@ti.com> | 2013-11-19 18:37:15 +0530 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-11-24 14:15:10 +0000 |
commit | 05b96675dbfc97fbb66d58cacbf2c8def020375e (patch) | |
tree | d89de95da0eeed9e7a30f5c719aeed08d997e7b3 /drivers/spi | |
parent | 160a061301c7adf54c40696e7ceedc73f6b747dd (diff) |
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: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-ti-qspi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c index e147ed42e1f..f3c3c3f7aae 100644 --- a/drivers/spi/spi-ti-qspi.c +++ b/drivers/spi/spi-ti-qspi.c @@ -161,7 +161,7 @@ static int ti_qspi_setup(struct spi_device *spi) qspi->spi_max_frequency, clk_div); ret = pm_runtime_get_sync(qspi->dev); - if (ret) { + if (ret < 0) { dev_err(qspi->dev, "pm_runtime_get_sync() failed\n"); return ret; } |