Commit 3f9dd4c8 authored by Weili Qian's avatar Weili Qian Committed by Herbert Xu
Browse files

crypto: hisilicon/qm - fix incorrect return value of hisi_qm_resume()



When hisi_qm_resume() returns 0, it indicates that the device has started
successfully.  If the device fails to start, hisi_qm_resume() needs to
return the actual error code to the caller instead of 0.

Fixes: d7ea5339 ("crypto: hisilicon - add runtime PM ops")
Signed-off-by: default avatarWeili Qian <qianweili@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent fed8f4d5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6071,7 +6071,7 @@ int hisi_qm_resume(struct device *dev)
	if (ret)
		pci_err(pdev, "failed to start qm(%d)\n", ret);

	return 0;
	return ret;
}
EXPORT_SYMBOL_GPL(hisi_qm_resume);