aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/hw_random
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2012-05-28 02:48:41 -0400
committerRusty Russell <rusty@rustcorp.com.au>2012-07-30 00:00:50 -0400
commit4476987a9a4525db3ebe29538cc357ca589db4ac (patch)
tree259dd510793641eaa868acd22f93a936abf94a56 /drivers/char/hw_random
parentcc8744e12936680478ce82b0f21dbaa272df1447 (diff)
virtio: rng: don't wait on host when module is going away
No use waiting for input from host when the module is being removed. We're going to remove the vq in the next step anyway, so just perform any other steps for cleanup (currently none). Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/char/hw_random')
-rw-r--r--drivers/char/hw_random/virtio-rng.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/hw_random/virtio-rng.c b/drivers/char/hw_random/virtio-rng.c
index c8a935034218..2dc9ce183cc6 100644
--- a/drivers/char/hw_random/virtio-rng.c
+++ b/drivers/char/hw_random/virtio-rng.c
@@ -109,6 +109,7 @@ static int virtrng_probe(struct virtio_device *vdev)
109static void __devexit virtrng_remove(struct virtio_device *vdev) 109static void __devexit virtrng_remove(struct virtio_device *vdev)
110{ 110{
111 vdev->config->reset(vdev); 111 vdev->config->reset(vdev);
112 busy = false;
112 hwrng_unregister(&virtio_hwrng); 113 hwrng_unregister(&virtio_hwrng);
113 vdev->config->del_vqs(vdev); 114 vdev->config->del_vqs(vdev);
114} 115}