|
@@ -489,6 +489,7 @@ static const struct virtio_config_ops virtio_mmio_config_ops = {
|
|
|
};
|
|
|
|
|
|
|
|
|
+static void virtio_mmio_release_dev_empty(struct device *_d) {}
|
|
|
|
|
|
/* Platform device */
|
|
|
|
|
@@ -511,6 +512,7 @@ static int virtio_mmio_probe(struct platform_device *pdev)
|
|
|
return -ENOMEM;
|
|
|
|
|
|
vm_dev->vdev.dev.parent = &pdev->dev;
|
|
|
+ vm_dev->vdev.dev.release = virtio_mmio_release_dev_empty;
|
|
|
vm_dev->vdev.config = &virtio_mmio_config_ops;
|
|
|
vm_dev->pdev = pdev;
|
|
|
INIT_LIST_HEAD(&vm_dev->virtqueues);
|