···594594595595static void virtio_pci_release_dev(struct device *_d)596596{597597- struct virtio_device *dev = container_of(_d, struct virtio_device,598598- dev);599599- struct virtio_pci_device *vp_dev = to_vp_device(dev);600600-601601- kfree(vp_dev);597597+ /*598598+ * No need for a release method as we allocate/free599599+ * all devices together with the pci devices.600600+ * Provide an empty one to avoid getting a warning from core.601601+ */602602}603603604604/* the PCI probing function */···686686 pci_iounmap(pci_dev, vp_dev->ioaddr);687687 pci_release_regions(pci_dev);688688 pci_disable_device(pci_dev);689689+ kfree(vp_dev);689690}690691691692#ifdef CONFIG_PM