Herbert Xu ac3a497f13 hwrng: core - Do not register device opportunistically
Currently we only register the device when a valid RNG is added.
However the way it's done is buggy because we test whether there
is a current RNG to determine whether we need to register.  As
the current RNG may be missing due to a reinitialisation error
this can lead to a reregistration of the device.

As the device already has to handle a NULL current RNG anyway,
let's just register the device always and remove the complexity.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2014-12-26 08:33:35 +11:00
..
2014-10-02 14:35:00 +08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-10-02 14:35:00 +08:00
2014-10-02 14:35:00 +08:00
2014-11-20 22:39:41 +08:00
2008-07-18 00:46:09 -07:00
2011-07-28 01:26:30 -07:00
2014-10-02 14:35:00 +08:00