[PATCH 03/11] hwrng: omap: add clk_prepare and clk_unprepare
Rajendra Nayak
rnayak at ti.com
Fri Jun 22 09:48:02 EDT 2012
In preparation of OMAP moving to Common Clk Framework(CCF) add clk_prepare()
and clk_unprepare() for the rng interface clock as part of the drivers
probe() and remove() routines.
Signed-off-by: Rajendra Nayak <rnayak at ti.com>
Cc: Deepak Saxena <dsaxena at plexity.net>
Cc: Matt Mackall <mpm at selenic.com>
---
drivers/char/hw_random/omap-rng.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/char/hw_random/omap-rng.c b/drivers/char/hw_random/omap-rng.c
index 1412565..500604a 100644
--- a/drivers/char/hw_random/omap-rng.c
+++ b/drivers/char/hw_random/omap-rng.c
@@ -110,7 +110,7 @@ static int __devinit omap_rng_probe(struct platform_device *pdev)
ret = PTR_ERR(rng_ick);
return ret;
} else
- clk_enable(rng_ick);
+ clk_prepare_enable(rng_ick);
}
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
@@ -138,7 +138,7 @@ err_register:
rng_base = NULL;
err_ioremap:
if (cpu_is_omap24xx()) {
- clk_disable(rng_ick);
+ clk_disable_unprepare(rng_ick);
clk_put(rng_ick);
}
return ret;
@@ -151,7 +151,7 @@ static int __exit omap_rng_remove(struct platform_device *pdev)
omap_rng_write_reg(RNG_MASK_REG, 0x0);
if (cpu_is_omap24xx()) {
- clk_disable(rng_ick);
+ clk_disable_unprepare(rng_ick);
clk_put(rng_ick);
}
--
1.7.1
More information about the linux-arm-kernel
mailing list