aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/clock.c
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2009-02-08 12:49:22 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-02-08 12:49:22 -0500
commit2e777bf1f2482be13c2b678744d3497a4f0a0ec2 (patch)
tree6bad23ebfceac80f9404d216f6d0ccda9efc520d /arch/arm/plat-omap/clock.c
parentae8fce5c3baf84e319269e67823cf337ed9d359a (diff)
[ARM] omap: provide a standard clk_get_parent() implementation
which only has to return clk->parent. 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.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c
index 7b0400728594..ae77e10719f2 100644
--- a/arch/arm/plat-omap/clock.c
+++ b/arch/arm/plat-omap/clock.c
@@ -207,18 +207,7 @@ EXPORT_SYMBOL(clk_set_parent);
207 207
208struct clk *clk_get_parent(struct clk *clk) 208struct clk *clk_get_parent(struct clk *clk)
209{ 209{
210 unsigned long flags; 210 return clk->parent;
211 struct clk * ret = NULL;
212
213 if (clk == NULL || IS_ERR(clk))
214 return ret;
215
216 spin_lock_irqsave(&clockfw_lock, flags);
217 if (arch_clock->clk_get_parent)
218 ret = arch_clock->clk_get_parent(clk);
219 spin_unlock_irqrestore(&clockfw_lock, flags);
220
221 return ret;
222} 211}
223EXPORT_SYMBOL(clk_get_parent); 212EXPORT_SYMBOL(clk_get_parent);
224 213