hwrng: bcm2835 - Add missing clk_disable_unprepare in bcm2835_rng_init
commitd57e2f7cffupstream. Add the missing clk_disable_unprepare() before return in bcm2835_rng_init(). Fixes:e5f9f41d5e("hwrng: bcm2835 - add reset support") Cc: <stable@vger.kernel.org> Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
8bdb39831b
commit
07f76feca0
@@ -95,8 +95,10 @@ static int bcm2835_rng_init(struct hwrng *rng)
|
||||
return ret;
|
||||
|
||||
ret = reset_control_reset(priv->reset);
|
||||
if (ret)
|
||||
if (ret) {
|
||||
clk_disable_unprepare(priv->clk);
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (priv->mask_interrupts) {
|
||||
/* mask the interrupt */
|
||||
|
||||
Reference in New Issue
Block a user