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

[ Upstream commit 3f9dd4c802 ]

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: d7ea53395b ("crypto: hisilicon - add runtime PM ops")
Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Weili Qian 2021-12-04 18:43:01 +08:00 коммит произвёл Greg Kroah-Hartman
Родитель 5367147cb4
Коммит 8b2b880549
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -5986,7 +5986,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);