virtio_pci: unregister virtio device at device remove
authorAnthony Liguori <aliguori@us.ibm.com>
Thu, 20 Mar 2008 01:35:04 +0000 (20:35 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 28 Mar 2008 00:05:51 +0000 (11:05 +1100)
commitbd6c26900bae19bd51abedfc9a8a281afbba3a06
treecb2058d113d81fa4b168b8675f000f8aecbf8b26
parent3085354de635179d70c240e6d942bcbd1d93056c
virtio_pci: unregister virtio device at device remove

Make sure to call unregister_virtio_device() when a virtio device is removed.
Otherwise, virtio_pci.ko cannot be rmmod'd.

This was spotted by Marcelo Tosatti.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/virtio/virtio_pci.c