summaryrefslogtreecommitdiffstats
path: root/include/linux/remoteproc.h
diff options
context:
space:
mode:
authorBjorn Andersson2016-10-20 04:40:06 +0200
committerBjorn Andersson2016-11-15 06:52:15 +0100
commitaab8d8022304b646fbf6eed5f6ac9bc21d54d2fd (patch)
treed93bd609e457d4280e16ba1f9125465a2345d1f8 /include/linux/remoteproc.h
parentdt-binding: remoteproc: wcnss: Allow describing smd edge (diff)
downloadkernel-qcow2-linux-aab8d8022304b646fbf6eed5f6ac9bc21d54d2fd.tar.gz
kernel-qcow2-linux-aab8d8022304b646fbf6eed5f6ac9bc21d54d2fd.tar.xz
kernel-qcow2-linux-aab8d8022304b646fbf6eed5f6ac9bc21d54d2fd.zip
remoteproc: Assign kref to rproc_vdev
No functional change Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'include/linux/remoteproc.h')
-rw-r--r--include/linux/remoteproc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h
index f6d5e66854e4..5def5c84b9c0 100644
--- a/include/linux/remoteproc.h
+++ b/include/linux/remoteproc.h
@@ -487,6 +487,7 @@ struct rproc_vring {
/**
* struct rproc_vdev - remoteproc state for a supported virtio device
+ * @refcount: reference counter for the vdev and vring allocations
* @node: list node
* @rproc: the rproc handle
* @vdev: the virio device
@@ -494,6 +495,8 @@ struct rproc_vring {
* @rsc_offset: offset of the vdev's resource entry
*/
struct rproc_vdev {
+ struct kref refcount;
+
struct list_head node;
struct rproc *rproc;
struct virtio_device vdev;