]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit34f87a15d58d7c5c674abf4311982e86d4f59382
tree1b95c19bda729066e6b2f4a3b718fd087d7e40c8
parent93a80044360be57c54c4b7affb3fc5c695d6d787
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