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

Commit ac887592 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Return correct error code from venus_hfi_suspend"

parents 2caf0b2f a848b0e7
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1302,8 +1302,12 @@ static int venus_hfi_suspend(void *dev)
	}

	dprintk(VIDC_DBG, "Suspending Venus\n");
	rc = flush_delayed_work(&venus_hfi_pm_work);
	flush_delayed_work(&venus_hfi_pm_work);

	mutex_lock(&device->lock);
	if (device->power_enabled)
		rc = -EBUSY;
	mutex_unlock(&device->lock);
	return rc;
}