spi: qup: Fix return value checking for pm_runtime_get_sync()
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/spi/spi-qup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-qup.c +1 -1
@@ -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 );
Signature · 8 lines
1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Mark Brown
AppliedQuoted 1 line · Axel Lin
pm_runtime_get_sync()returns 1 if !CONFIG_PM_RUNTIME.
Applied, thanks.