summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorSourav Poddar <sourav.poddar@ti.com>2013-11-19 14:07:15 +0100
committerMark Brown <broonie@linaro.org>2013-11-24 15:15:10 +0100
commit05b96675dbfc97fbb66d58cacbf2c8def020375e (patch)
treed89de95da0eeed9e7a30f5c719aeed08d997e7b3 /drivers/spi
parentspi/qspi: set correct platform drvdata in ti_qspi_probe() (diff)
downloadlinux-05b96675dbfc97fbb66d58cacbf2c8def020375e.tar.xz
linux-05b96675dbfc97fbb66d58cacbf2c8def020375e.zip
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 e147ed42e1fc..f3c3c3f7aaed 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;
}