android_kernel_xiaomi_sm8350/drivers/virtio
Mark McLoughlin 29f9f12ec7 virtio: add PCI device release() function
Add a release() function for virtio_pci devices so as to avoid:

  Device 'virtio0' does not have a release() function, it is broken and must be fixed

Move the code to free the resources associated with the device
from virtio_pci_remove() into this new function. virtio_pci_remove()
now merely unregisters the device which should cause the final
ref to be dropped and virtio_pci_release_dev() to be called.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Reported-by: Michael Tokarev <mjt@tls.msk.ru>
Cc: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2008-12-30 09:26:10 +10:30
..
config.c
Kconfig
Makefile
virtio_balloon.c virtio: avoid implicit use of Linux page size in balloon interface 2008-12-30 09:26:04 +10:30
virtio_pci.c virtio: add PCI device release() function 2008-12-30 09:26:10 +10:30
virtio_ring.c virtio: hand virtio ring alignment as argument to vring_new_virtqueue 2008-12-30 09:26:03 +10:30
virtio.c virtio: struct device - replace bus_id with dev_name(), dev_set_name() 2008-12-30 09:25:56 +10:30