summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorSourav Poddar <sourav.poddar@ti.com>2013-11-19 18:37:15 +0530
committerMark Brown <broonie@linaro.org>2013-11-24 14:15:10 +0000
commit05b96675dbfc97fbb66d58cacbf2c8def020375e (patch)
treed89de95da0eeed9e7a30f5c719aeed08d997e7b3 /drivers/spi
parent160a061301c7adf54c40696e7ceedc73f6b747dd (diff)
downloadop-kernel-dev-05b96675dbfc97fbb66d58cacbf2c8def020375e.zip
op-kernel-dev-05b96675dbfc97fbb66d58cacbf2c8def020375e.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c
index e147ed4..f3c3c3f 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;
}
OpenPOWER on IntegriCloud