diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2013-06-03 02:02:09 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-06-05 10:43:09 +0200 |
commit | beca35d05cc224d7434b0d1b5911c7b25febd336 (patch) | |
tree | eb94c59340fe39734d393ecb25ec9c92d80c3d57 /drivers/char/hw_random | |
parent | crypto: picoxcell - replace strict_strtoul() with kstrtoul() (diff) | |
download | linux-beca35d05cc224d7434b0d1b5911c7b25febd336.tar.xz linux-beca35d05cc224d7434b0d1b5911c7b25febd336.zip |
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: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char/hw_random')
-rw-r--r-- | drivers/char/hw_random/nomadik-rng.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hw_random/nomadik-rng.c b/drivers/char/hw_random/nomadik-rng.c index 96de0249e595..232b87fb5fc9 100644 --- a/drivers/char/hw_random/nomadik-rng.c +++ b/drivers/char/hw_random/nomadik-rng.c @@ -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) |