]> git.baikalelectronics.ru Git - kernel.git/commit
hwrng: st - Fix missing clk_disable_unprepare() on error in st_rng_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 10 Sep 2016 12:03:42 +0000 (12:03 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 13 Sep 2016 12:27:24 +0000 (20:27 +0800)
commitf92316460601fa00972e32420d8c1373cf9a2bac
treee1a298e3941e35090560f0a402aac2640c1085df
parentab3bf1ee8f1f0ac3d7d3305d46b69535dd95eb48
hwrng: st - Fix missing clk_disable_unprepare() on error in st_rng_probe()

Fix the missing clk_disable_unprepare() before return
from st_rng_probe() in the error handling case.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Acked-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/st-rng.c