hwrng: bcm2835 - Implementation cleanup callback
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 8 Nov 2017 00:44:41 +0000 (16:44 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 29 Nov 2017 05:43:44 +0000 (16:43 +1100)
commitec94bca7be6b29c1aebf2e1e95855ee6ca0d5d62
tree22eff73ef690d437161463ec16d0a52c0c951670
parenta815777553826079929e0910fcf3fda9a1e8438b
hwrng: bcm2835 - Implementation cleanup callback

We should be disabling the RNG in a hwrng::cleanup callback if we are
not longer the system selected RNG, not wait until the device driver is
removed.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/bcm2835-rng.c