hwrng: core - Move hwrng_init call into set_current_rng
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 23 Dec 2014 05:40:22 +0000 (16:40 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 25 Dec 2014 21:33:36 +0000 (08:33 +1100)
commit90ac41bd40ad0571a10826eb26d53c84bd791f29
tree47637b48bcfd4f4a284417184e5f15e1b747d837
parentff77c150f71b761dcf29b9d1947df3165d2dc83e
hwrng: core - Move hwrng_init call into set_current_rng

We always do hwrng_init in set_current_rng.  In fact, our current
reference count system relies on this.  So make this explicit by
moving hwrng_init into set_current_rng.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/core.c