virtio: fix module/device unloading
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 19 Nov 2007 16:20:42 +0000 (11:20 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 19 Nov 2007 00:20:42 +0000 (11:20 +1100)
commit74b2553f1d13e60fb27063204bd5b6908a6f8494
treecd35e82d16cf190ccd95362478a598314de639ce
parentd1c856e0f1a4c946c6329cff126548ef4288735f
virtio: fix module/device unloading

The virtio code never hooked through the ->remove callback.  Although
noone supports device removal at the moment, this code is already
needed for module unloading.

This of course also revealed bugs in virtio_blk, virtio_net and lguest
unloading paths.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/block/virtio_blk.c
drivers/lguest/lguest_device.c
drivers/net/virtio_net.c
drivers/virtio/virtio.c