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>
This commit is contained in:
Axel Lin 2014-05-03 10:57:57 +08:00 committed by Mark Brown
parent c9eaa447e7
commit 3d89e141bb

View File

@ -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);