diff options
author | Claudiu Beznea <claudiu.beznea@microchip.com> | 2022-02-21 09:59:23 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-03-03 10:46:18 +1200 |
commit | a223ea9f89ab960eb254ba78429efd42eaf845eb (patch) | |
tree | 649f1a25f3adecaf40dadf4a79e0bf607253a673 | |
parent | 0934683dd1c7d307cac29902ee5e0ab50aa279f9 (diff) | |
download | linux-a223ea9f89ab960eb254ba78429efd42eaf845eb.tar.bz2 |
hwrng: atmel - disable trng on failure path
Call atmel_trng_disable() on failure path of probe.
Fixes: a1fa98d8116f ("hwrng: atmel - disable TRNG during suspend")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | drivers/char/hw_random/atmel-rng.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/hw_random/atmel-rng.c b/drivers/char/hw_random/atmel-rng.c index 1a4874668c04..b7ef951927fb 100644 --- a/drivers/char/hw_random/atmel-rng.c +++ b/drivers/char/hw_random/atmel-rng.c @@ -131,6 +131,7 @@ static int atmel_trng_probe(struct platform_device *pdev) err_register: clk_disable_unprepare(trng->clk); + atmel_trng_disable(trng); return ret; } |