X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;ds=sidebyside;f=Documentation%2Fremoteproc.txt;h=f075974823513dfd48e4b14fe5cadc5329fae3e9;hb=68ba0326b4e14988f9e0c24a6e12a85cf2acd1ca;hp=ef0219fa4bb4cf5beb9078293a92b3ccbcbe0d48;hpb=8c4de9bc2041229fb778e0c47e32585b6f6b1d09;p=cascardo%2Flinux.git diff --git a/Documentation/remoteproc.txt b/Documentation/remoteproc.txt index ef0219fa4bb4..f07597482351 100644 --- a/Documentation/remoteproc.txt +++ b/Documentation/remoteproc.txt @@ -101,9 +101,9 @@ int dummy_rproc_example(struct rproc *my_rproc) On success, the new rproc is returned, and on failure, NULL. Note: _never_ directly deallocate @rproc, even if it was not registered - yet. Instead, when you need to unroll rproc_alloc(), use rproc_put(). + yet. Instead, when you need to unroll rproc_alloc(), use rproc_free(). - void rproc_put(struct rproc *rproc) + void rproc_free(struct rproc *rproc) - Free an rproc handle that was allocated by rproc_alloc. This function essentially unrolls rproc_alloc(), by decrementing the rproc's refcount. It doesn't directly free rproc; that would happen @@ -131,7 +131,7 @@ int dummy_rproc_example(struct rproc *my_rproc) has completed successfully. After rproc_del() returns, @rproc is still valid, and its - last refcount should be decremented by calling rproc_put(). + last refcount should be decremented by calling rproc_free(). Returns 0 on success and -EINVAL if @rproc isn't valid.