diff options
author | Stephan Gerhold <stephan@gerhold.net> | 2021-06-18 13:15:54 +0200 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2021-06-23 20:35:12 +0200 |
commit | 61d1961adf4bd57d1b2c6d94d97323263c470cb2 (patch) | |
tree | ffccc47cb2f0a3c227b23f2b4a85ffd87b8cf0e4 /drivers/remoteproc | |
parent | dt-bindings: remoteproc: qcom: pas: Fix indentation warnings (diff) | |
download | linux-61d1961adf4bd57d1b2c6d94d97323263c470cb2.tar.xz linux-61d1961adf4bd57d1b2c6d94d97323263c470cb2.zip |
soc: qcom: smem_state: Add devm_qcom_smem_state_get()
It is easy to forget to call qcom_smem_state_put() after
a qcom_smem_state_get(). Introduce a devm_qcom_smem_state_get()
helper function that automates this so that qcom_smem_state_put()
is automatically called when a device is removed.
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210618111556.53416-1-stephan@gerhold.net
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/remoteproc')
0 files changed, 0 insertions, 0 deletions