slimbus: qcom-ngd: use correct error in message of pdr_add_lookup() failure
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 16 Sep 2022 12:29:07 +0000 (13:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 10:34:25 +0000 (12:34 +0200)
commitfa0aab2e45f08e577cb1846560b42abcd03b7193
treef5eece3575b189a9b58ac8e83d7cba8b884354bf
parentba2159df18066045b6db1a44d502071e1c52b230
slimbus: qcom-ngd: use correct error in message of pdr_add_lookup() failure

commit 5038d21dde818fe74ba1fcb6f2cee35b8c2ebbf2 upstream.

Use correct error code, instead of previous 'ret' value, when printing
error from pdr_add_lookup() failure.

Fixes: e1ae85e1830e ("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>
drivers/slimbus/qcom-ngd-ctrl.c