Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit beca35d0 authored by Linus Walleij's avatar Linus Walleij Committed by Herbert Xu
Browse files

hwrng: nomadik - use clk_prepare_enable()



The Nomadik HW RNG driver has seen some rust and is not preparing
the clock before use. Fix this up so we get rid of runtime
complaints from the clock subsystem.

Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 61e2d1a9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ static int nmk_rng_probe(struct amba_device *dev, const struct amba_id *id)
		return ret;
	}

	clk_enable(rng_clk);
	clk_prepare_enable(rng_clk);

	ret = amba_request_regions(dev, dev->dev.init_name);
	if (ret)