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 <wangbowen6@xiaomi.com>
  • Loading branch information
CV-Bowen authored and arnopo committed Jan 9, 2024
1 parent 1957ed2 commit 62a003d
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 @@ -270,6 +270,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 62a003d

Please sign in to comment.