From: Claudiu Beznea Date: Mon, 21 Feb 2022 07:59:23 +0000 (+0200) Subject: hwrng: atmel - disable trng on failure path X-Git-Tag: v6.6.17~7845^2~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a223ea9f89ab960eb254ba78429efd42eaf845eb;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Herbert Xu --- diff --git a/drivers/char/hw_random/atmel-rng.c b/drivers/char/hw_random/atmel-rng.c index 1a48746..b7ef951 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; }