summaryrefslogtreecommitdiff
path: root/arch/arm/mach-shmobile/clock-sh7367.c
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2010-05-12 14:21:24 (GMT)
committerPaul Mundt <lethal@linux-sh.org>2010-05-20 03:05:45 (GMT)
commite47bb515c57853c1f41474dae199cb033e747f66 (patch)
treeb5756cf85f2db87bd31b7045aa747c6708658f60 /arch/arm/mach-shmobile/clock-sh7367.c
parent645e522ee05f467b86f6fd2f3554fd6592418bae (diff)
downloadlinux-fsl-qoriq-e47bb515c57853c1f41474dae199cb033e747f66.tar.xz
ARM: mach-shmobile: Use shared clock framework
Teach SH-Mobile ARM how to make use of the shared SH clock framework. This commit is one atomic switch that dumps the local hackery and instead links in the shared clock framework code in drivers/sh. A few local functions are kept in clock.c. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/arm/mach-shmobile/clock-sh7367.c')
-rw-r--r--arch/arm/mach-shmobile/clock-sh7367.c36
1 files changed, 1 insertions, 35 deletions
diff --git a/arch/arm/mach-shmobile/clock-sh7367.c b/arch/arm/mach-shmobile/clock-sh7367.c
index bb940c6..f3ede52 100644
--- a/arch/arm/mach-shmobile/clock-sh7367.c
+++ b/arch/arm/mach-shmobile/clock-sh7367.c
@@ -21,43 +21,9 @@
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/clk.h>
-
-struct clk {
- const char *name;
- unsigned long rate;
-};
-
+#include <linux/sh_clk.h>
#include <asm/clkdev.h>
-int __clk_get(struct clk *clk)
-{
- return 1;
-}
-EXPORT_SYMBOL(__clk_get);
-
-void __clk_put(struct clk *clk)
-{
-}
-EXPORT_SYMBOL(__clk_put);
-
-
-int clk_enable(struct clk *clk)
-{
- return 0;
-}
-EXPORT_SYMBOL(clk_enable);
-
-void clk_disable(struct clk *clk)
-{
-}
-EXPORT_SYMBOL(clk_disable);
-
-unsigned long clk_get_rate(struct clk *clk)
-{
- return clk ? clk->rate : 0;
-}
-EXPORT_SYMBOL(clk_get_rate);
-
/* a static peripheral clock for now - enough to get sh-sci working */
static struct clk peripheral_clk = {
.name = "peripheral_clk",