Skip to content
Commit 305ac5a7 authored by Paul Cercueil's avatar Paul Cercueil Committed by Bjorn Andersson
Browse files

remoteproc: Add device-managed variants of rproc_alloc/rproc_add



Add API functions devm_rproc_alloc() and devm_rproc_add(), which behave
like rproc_alloc() and rproc_add() respectively, but register their
respective cleanup function to be called on driver detach.

Reviewed-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: default avatarPaul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20200417170040.174319-2-paul@crapouillou.net


Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent db655278
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment