summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-05-03 04:57:57 +0200
committerMark Brown <broonie@linaro.org>2014-05-03 18:52:27 +0200
commit3d89e141bbf8619f3db97c38e33cb6d7a563614d (patch)
treed860efc669b716646598581ba1f6ee91555aec69 /drivers
parentLinux 3.15-rc1 (diff)
downloadlinux-3d89e141bbf8619f3db97c38e33cb6d7a563614d.tar.xz
linux-3d89e141bbf8619f3db97c38e33cb6d7a563614d.zip
spi: qup: Fix return value checking for pm_runtime_get_sync()
pm_runtime_get_sync() returns 1 if !CONFIG_PM_RUNTIME. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/spi/spi-qup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c
index b032e8885e24..78c66e3c53ed 100644
--- a/drivers/spi/spi-qup.c
+++ b/drivers/spi/spi-qup.c
@@ -734,7 +734,7 @@ static int spi_qup_remove(struct platform_device *pdev)
int ret;
ret = pm_runtime_get_sync(&pdev->dev);
- if (ret)
+ if (ret < 0)
return ret;
ret = spi_qup_set_state(controller, QUP_STATE_RESET);