Skip to content

Commit

Permalink
soc: qcom: apr: Fixup the error displayed on lookup failure
Browse files Browse the repository at this point in the history
[ Upstream commit ba34f97 ]

APR client incorrectly prints out "ret" variable on pdr_add_lookup failure,
it should be printing the error value returned by the lookup instead.

Fixes: 8347356 ("soc: qcom: apr: Add avs/audio tracking functionality")
Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
Link: https://lore.kernel.org/r/20200915154232.27523-1-sibis@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Sibi Sankar authored and gregkh committed Oct 29, 2020
1 parent 9d4e8df commit b812ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/soc/qcom/apr.c
Expand Up @@ -328,7 +328,7 @@ static int of_apr_add_pd_lookups(struct device *dev)

pds = pdr_add_lookup(apr->pdr, service_name, service_path);
if (IS_ERR(pds) && PTR_ERR(pds) != -EALREADY) {
dev_err(dev, "pdr add lookup failed: %d\n", ret);
dev_err(dev, "pdr add lookup failed: %ld\n", PTR_ERR(pds));
return PTR_ERR(pds);
}
}
Expand Down

0 comments on commit b812ab6

Please sign in to comment.