Skip to content

Commit

Permalink
remoteproc_virtio: initialize the virtio device id when create vdev
Browse files Browse the repository at this point in the history
Should init the device ID when create the virtio device.

Signed-off-by: Bowen Wang <[email protected]>
  • Loading branch information
CV-Bowen committed Dec 4, 2023
1 parent b33183f commit 4678069
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/remoteproc/remoteproc_virtio.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ rproc_virtio_create_vdev(unsigned int role, unsigned int notifyid,
rpvdev->vdev_rsc_io = rsc_io;

vdev->notifyid = notifyid;
vdev->id.device = vdev_rsc->id;
vdev->role = role;
vdev->reset_cb = rst_cb;
vdev->vrings_num = num_vrings;
Expand Down

0 comments on commit 4678069

Please sign in to comment.