From: Mark McLoughlin Date: Wed, 10 Dec 2008 17:45:34 +0000 (+0000) Subject: virtio: add PCI device release() function X-Git-Tag: v2.6.29-rc1~558^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29f9f12ec737af62835124e4a8bdb9de631f04dd;p=pandora-kernel.git 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 Reported-by: Michael Tokarev Cc: Anthony Liguori Signed-off-by: Rusty Russell --- Reading git-diff-tree failed