Revert "hwrng: virtio - ensure reads happen after successful probe"
authorAmit Shah <amit.shah@redhat.com>
Sat, 26 Jul 2014 22:05:01 +0000 (07:35 +0930)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 20:41:08 +0000 (13:41 -0700)
commit60ede3e7d31ef63d8ed1ebc847b0290ad6f3f5f7
tree0da6cceb1d888a7e9e94b9fcdf1da6ad67297868
parent5590b04b7a4fa2400f4d6ccec3c4d6166fab52cf
Revert "hwrng: virtio - ensure reads happen after successful probe"

commit eeec626366ffe558fc3d5685bd2b49a962acf57d upstream.

This reverts commit e052dbf554610e2104c5a7518c4d8374bed701bb.

Now that we use the virtio ->scan() function to register with the hwrng
core, we will not get read requests till probe is successfully finished.

So revert the workaround we had in place to refuse read requests while
we were not yet setup completely.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/hw_random/core.c
drivers/char/hw_random/virtio-rng.c