From: Linus Walleij Date: Mon, 3 Jun 2013 00:02:09 +0000 (+0200) Subject: hwrng: nomadik - use clk_prepare_enable() X-Git-Tag: v3.11-rc1~82^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=beca35d05cc224d7434b0d1b5911c7b25febd336;p=thirdparty%2Flinux.git 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 Signed-off-by: Herbert Xu --- diff --git a/drivers/char/hw_random/nomadik-rng.c b/drivers/char/hw_random/nomadik-rng.c index 96de0249e5958..232b87fb5fc91 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)