remoteproc: virtio: Create platform device for the remoteproc_virtio
[linux-2.6-microblaze.git] / include / linux / remoteproc.h
index aea79c7..1abf56a 100644 (file)
@@ -616,9 +616,8 @@ struct rproc_vring {
 
 /**
  * struct rproc_vdev - remoteproc state for a supported virtio device
- * @refcount: reference counter for the vdev and vring allocations
  * @subdev: handle for registering the vdev as a rproc subdevice
- * @dev: device struct used for reference count semantics
+ * @pdev: remoteproc virtio platform device
  * @id: virtio device id (as in virtio_ids.h)
  * @node: list node
  * @rproc: the rproc handle
@@ -627,10 +626,9 @@ struct rproc_vring {
  * @index: vdev position versus other vdev declared in resource table
  */
 struct rproc_vdev {
-       struct kref refcount;
 
        struct rproc_subdev subdev;
-       struct device dev;
+       struct platform_device *pdev;
 
        unsigned int id;
        struct list_head node;