mirror of
https://github.com/torvalds/linux.git
synced 2024-12-31 23:31:29 +00:00
hwrng: atmel - disable trng on failure path
Call atmel_trng_disable() on failure path of probe.
Fixes: a1fa98d811
("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>
This commit is contained in:
parent
0934683dd1
commit
a223ea9f89
@ -131,6 +131,7 @@ static int atmel_trng_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
err_register:
|
err_register:
|
||||||
clk_disable_unprepare(trng->clk);
|
clk_disable_unprepare(trng->clk);
|
||||||
|
atmel_trng_disable(trng);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user