diff options
| -rw-r--r-- | drivers/remoteproc/remoteproc_virtio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/remoteproc/remoteproc_virtio.c b/drivers/remoteproc/remoteproc_virtio.c index 294634836b32..b0633fd4c041 100644 --- a/drivers/remoteproc/remoteproc_virtio.c +++ b/drivers/remoteproc/remoteproc_virtio.c | |||
| @@ -327,7 +327,7 @@ int rproc_add_virtio_dev(struct rproc_vdev *rvdev, int id) | |||
| 327 | 327 | ||
| 328 | ret = register_virtio_device(vdev); | 328 | ret = register_virtio_device(vdev); |
| 329 | if (ret) { | 329 | if (ret) { |
| 330 | put_device(&rproc->dev); | 330 | put_device(&vdev->dev); |
| 331 | dev_err(dev, "failed to register vdev: %d\n", ret); | 331 | dev_err(dev, "failed to register vdev: %d\n", ret); |
| 332 | goto out; | 332 | goto out; |
| 333 | } | 333 | } |
