hwrng: nomadik - use clk_prepare_enable()
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 3 Jun 2013 00:02:09 +0000 (02:02 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 5 Jun 2013 08:43:09 +0000 (16:43 +0800)
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>
drivers/char/hw_random/nomadik-rng.c

index 96de0249e595812f778786380cac78866b3b408e..232b87fb5fc911d8697b4fbddd04063614dffd07 100644 (file)
@@ -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)