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)
commit94879fa82275f161f3b4fdabab00cd4d625781f3
treee1a298e3941e35090560f0a402aac2640c1085df
parent31b2a73c9c5f1f02c896c4e434957b831dd50a7f
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