Christophe JAILLET c4ff41b93d hwrng: ingenic - Fix a resource leak in an error handling path
In case of error, we should call 'clk_disable_unprepare()' to undo a
previous 'clk_prepare_enable()' call, as already done in the remove
function.

Fixes: 406346d22278 ("hwrng: ingenic - Add hardware TRNG for Ingenic X1830")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Tested-by: 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2021-01-03 08:41:37 +11:00
..
2020-11-09 16:05:09 +01:00
2018-06-05 11:24:55 -07:00
2020-01-30 06:58:33 +01:00
2020-11-09 16:05:09 +01:00
2020-03-19 07:41:02 +01:00
2020-09-07 10:46:35 +02:00