Commit a223ea9f authored by Claudiu Beznea's avatar Claudiu Beznea Committed by Herbert Xu

hwrng: atmel - disable trng on failure path

Call atmel_trng_disable() on failure path of probe.

Fixes: a1fa98d8 ("hwrng: atmel - disable TRNG during suspend")
Signed-off-by: default avatarClaudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 0934683d
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment