mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-27 00:04:47 +08:00
slimbus: qcom-ngd: use correct error in message of pdr_add_lookup() failure
commit5038d21dde
upstream. Use correct error code, instead of previous 'ret' value, when printing error from pdr_add_lookup() failure. Fixes:e1ae85e183
("slimbus: qcom-ngd-ctrl: add Protection Domain Restart Support") Cc: <stable@vger.kernel.org> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20220916122910.170730-2-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ba2159df18
commit
fa0aab2e45
@ -1572,8 +1572,9 @@ static int qcom_slim_ngd_ctrl_probe(struct platform_device *pdev)
|
||||
|
||||
pds = pdr_add_lookup(ctrl->pdr, "avs/audio", "msm/adsp/audio_pd");
|
||||
if (IS_ERR(pds) && PTR_ERR(pds) != -EALREADY) {
|
||||
ret = PTR_ERR(pds);
|
||||
dev_err(dev, "pdr add lookup failed: %d\n", ret);
|
||||
return PTR_ERR(pds);
|
||||
return ret;
|
||||
}
|
||||
|
||||
platform_driver_register(&qcom_slim_ngd_driver);
|
||||
|
Loading…
Reference in New Issue
Block a user