diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-05-03 04:57:57 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-03 18:52:27 +0200 |
commit | 3d89e141bbf8619f3db97c38e33cb6d7a563614d (patch) | |
tree | d860efc669b716646598581ba1f6ee91555aec69 /drivers | |
parent | Linux 3.15-rc1 (diff) | |
download | linux-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.c | 2 |
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); |