aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2009-01-19 11:28:32 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-02-08 12:50:15 -0500
commit2b811bb56a008f0f669a1bd82e4d077e75aa059a (patch)
tree08a1fc1cb43bf7c82f1669cb11243b6c7f0d8d5e /arch
parent44dc9d027f1cb56625b1011d8725d2ab614c04e6 (diff)
[ARM] omap: remove pre-CLKDEV clk_get/clk_put
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/plat-omap/clock.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c
index 6b88f7878a51..5272a2212abd 100644
--- a/arch/arm/plat-omap/clock.c
+++ b/arch/arm/plat-omap/clock.c
@@ -36,45 +36,6 @@ 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
40/*
41 * Returns a clock. Note that we first try to use device id on the bus
42 * and clock name. If this fails, we try to use clock name only.
43 */
44struct clk * clk_get(struct device *dev, const char *id)
45{
46 struct clk *p, *clk = ERR_PTR(-ENOENT);
47 int idno;
48
49 if (dev == NULL || dev->bus != &platform_bus_type)
50 idno = -1;
51 else
52 idno = to_platform_device(dev)->id;
53
54 mutex_lock(&clocks_mutex);
55
56 list_for_each_entry(p, &clocks, node) {
57 if (p->id == idno && strcmp(id, p->name) == 0) {
58 clk = p;
59 goto found;
60 }
61 }
62
63 list_for_each_entry(p, &clocks, node) {
64 if (strcmp(id, p->name) == 0) {
65 clk = p;
66 break;
67 }
68 }
69
70found:
71 mutex_unlock(&clocks_mutex);
72
73 return clk;
74}
75EXPORT_SYMBOL(clk_get);
76#endif
77
78int clk_enable(struct clk *clk) 39int clk_enable(struct clk *clk)
79{ 40{
80 unsigned long flags; 41 unsigned long flags;
@@ -147,13 +108,6 @@ unsigned long clk_get_rate(struct clk *clk)
147} 108}
148EXPORT_SYMBOL(clk_get_rate); 109EXPORT_SYMBOL(clk_get_rate);
149 110
150#ifndef CONFIG_COMMON_CLKDEV
151void clk_put(struct clk *clk)
152{
153}
154EXPORT_SYMBOL(clk_put);
155#endif
156
157/*------------------------------------------------------------------------- 111/*-------------------------------------------------------------------------
158 * Optional clock functions defined in include/linux/clk.h 112 * Optional clock functions defined in include/linux/clk.h
159 *-------------------------------------------------------------------------*/ 113 *-------------------------------------------------------------------------*/