Skip to content

Commit 632f1ca

Browse files
stephan-ghandersson
authored andcommitted
remoteproc: qcom_q6v5: Use devm_qcom_smem_state_get() to fix missing put()
qcom_q6v5 is requesting a smem state with qcom_smem_state_get() but qcom_smem_state_put() is not called anywhere. Use the new devm_() variant to fix this without making the code more complicated. Fixes: 051fb70 ("remoteproc: qcom: Driver for the self-authenticating Hexagon v5") Signed-off-by: Stephan Gerhold <stephan@gerhold.net> Link: https://lore.kernel.org/r/20210618111556.53416-2-stephan@gerhold.net Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
1 parent 61d1961 commit 632f1ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/remoteproc/qcom_q6v5.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ int qcom_q6v5_init(struct qcom_q6v5 *q6v5, struct platform_device *pdev,
280280
return ret;
281281
}
282282

283-
q6v5->state = qcom_smem_state_get(&pdev->dev, "stop", &q6v5->stop_bit);
283+
q6v5->state = devm_qcom_smem_state_get(&pdev->dev, "stop", &q6v5->stop_bit);
284284
if (IS_ERR(q6v5->state)) {
285285
dev_err(&pdev->dev, "failed to acquire stop state\n");
286286
return PTR_ERR(q6v5->state);

0 commit comments

Comments
 (0)