aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/clock.c
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2009-01-18 18:03:15 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-02-08 12:50:13 -0500
commitd7e8f1f9d655af2c7ea90738bf567aa6990159b3 (patch)
tree6ee9ce41a078c8f6501236c258a52ca0ed8c355d /arch/arm/plat-omap/clock.c
parentdbb674d57b5851a4fe3122ff4280e4cf87209198 (diff)
[ARM] omap: convert OMAP1 to use clkdev
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/plat-omap/clock.c')
-rw-r--r--arch/arm/plat-omap/clock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c
index 6b3ef2a0b04e..6b88f7878a51 100644
--- a/arch/arm/plat-omap/clock.c
+++ b/arch/arm/plat-omap/clock.c
@@ -36,6 +36,7 @@ static struct clk_functions *arch_clock;
36 * Standard clock functions defined in include/linux/clk.h 36 * Standard clock functions defined in include/linux/clk.h
37 *-------------------------------------------------------------------------*/ 37 *-------------------------------------------------------------------------*/
38 38
39#ifndef CONFIG_COMMON_CLKDEV
39/* 40/*
40 * Returns a clock. Note that we first try to use device id on the bus 41 * Returns a clock. Note that we first try to use device id on the bus
41 * and clock name. If this fails, we try to use clock name only. 42 * and clock name. If this fails, we try to use clock name only.
@@ -72,6 +73,7 @@ found:
72 return clk; 73 return clk;
73} 74}
74EXPORT_SYMBOL(clk_get); 75EXPORT_SYMBOL(clk_get);
76#endif
75 77
76int clk_enable(struct clk *clk) 78int clk_enable(struct clk *clk)
77{ 79{
@@ -145,10 +147,12 @@ unsigned long clk_get_rate(struct clk *clk)
145} 147}
146EXPORT_SYMBOL(clk_get_rate); 148EXPORT_SYMBOL(clk_get_rate);
147 149
150#ifndef CONFIG_COMMON_CLKDEV
148void clk_put(struct clk *clk) 151void clk_put(struct clk *clk)
149{ 152{
150} 153}
151EXPORT_SYMBOL(clk_put); 154EXPORT_SYMBOL(clk_put);
155#endif
152 156
153/*------------------------------------------------------------------------- 157/*-------------------------------------------------------------------------
154 * Optional clock functions defined in include/linux/clk.h 158 * Optional clock functions defined in include/linux/clk.h