hwrng: atmel - disable trng on failure path
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Mon, 21 Feb 2022 07:59:23 +0000 (09:59 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 2 Mar 2022 22:46:18 +0000 (10:46 +1200)
commita223ea9f89ab960eb254ba78429efd42eaf845eb
tree649f1a25f3adecaf40dadf4a79e0bf607253a673
parent0934683dd1c7d307cac29902ee5e0ab50aa279f9
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>
drivers/char/hw_random/atmel-rng.c