Skip to content

Commit

Permalink
hwrng: nomadik - use clk_prepare_enable()
Browse files Browse the repository at this point in the history
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: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Linus Walleij authored and Herbert Xu committed Jun 5, 2013
1 parent 61e2d1a commit beca35d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/hw_random/nomadik-rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit beca35d

Please sign in to comment.