Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d89e141 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

spi: qup: Fix return value checking for pm_runtime_get_sync()



pm_runtime_get_sync() returns 1 if !CONFIG_PM_RUNTIME.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent c9eaa447
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);