virtio_mmio: Set dev.release() to avoid warning
authorYuan Liu <liuyuan@google.com>
Thu, 24 Nov 2016 00:31:00 +0000 (16:31 -0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 15 Dec 2016 22:13:39 +0000 (00:13 +0200)
commitcecdbdc3771e5b8583a9b43b03335b4223a9a6c9
tree1b95c19bda729066e6b2f4a3b718fd087d7e40c8
parent8d390464bf22a47252eb976efae2f462c5c884e5
virtio_mmio: Set dev.release() to avoid warning

Fix a warning thrown from virtio_mmio_remove():
Device 'virtio0' does not have a release() function

The fix is according to virtio_pci_probe() of
drivers/virtio/virtio_pci_common.c

Signed-off-by: Yuan Liu <liuyuan@google.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_mmio.c