summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-06-03 00:02:09 (GMT)
committerHerbert Xu <herbert@gondor.apana.org.au>2013-06-05 08:43:09 (GMT)
commitbeca35d05cc224d7434b0d1b5911c7b25febd336 (patch)
treeeb94c59340fe39734d393ecb25ec9c92d80c3d57 /drivers
parent61e2d1a9b2e8105631ac7ff5b048342fcfd3d622 (diff)
downloadlinux-fsl-qoriq-beca35d05cc224d7434b0d1b5911c7b25febd336.tar.xz
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')
-rw-r--r--drivers/char/hw_random/nomadik-rng.c2
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 96de024..232b87f 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)