Skip to content

Commit

Permalink
hwrng: atmel - disable trng on failure path
Browse files Browse the repository at this point in the history
Call atmel_trng_disable() on failure path of probe.

Fixes: a1fa98d ("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>
  • Loading branch information
Claudiu Beznea authored and Herbert Xu committed Mar 2, 2022
1 parent 0934683 commit a223ea9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/char/hw_random/atmel-rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a223ea9

Please sign in to comment.