]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
sh: clkfwk: Shuffle around to match the intc split up.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 18 Oct 2010 12:32:58 +0000 (21:32 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 18 Oct 2010 12:32:58 +0000 (21:32 +0900)
This shuffles the clock framework code around to a drivers/sh/clk subdir,
to follow the intc split up. This will make it easier to subsequently
break things out as well as plug in different helpers for non-CPG users.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/sh/Makefile
drivers/sh/clk/Makefile [new file with mode: 0644]
drivers/sh/clk/core.c [moved from drivers/sh/clk.c with 99% similarity]
drivers/sh/clk/cpg.c [moved from drivers/sh/clk-cpg.c with 96% similarity]

index 50dd5a65f72e44deebae0613499a6fd11733c09a..24e6cec0ae8dfb51efbb704f6e37d0228ddcc3fe 100644 (file)
@@ -1,10 +1,9 @@
 #
 # Makefile for the SuperH specific drivers.
 #
-obj-y  := clk.o intc/
+obj-y  := intc/
 
-obj-$(CONFIG_SUPERHYWAY)       += superhyway/
+obj-$(CONFIG_HAVE_CLK)         += clk/
 obj-$(CONFIG_MAPLE)            += maple/
-
+obj-$(CONFIG_SUPERHYWAY)       += superhyway/
 obj-$(CONFIG_GENERIC_GPIO)     += pfc.o
-obj-$(CONFIG_SH_CLK_CPG)       += clk-cpg.o
diff --git a/drivers/sh/clk/Makefile b/drivers/sh/clk/Makefile
new file mode 100644 (file)
index 0000000..5d15ebf
--- /dev/null
@@ -0,0 +1,3 @@
+obj-y  := core.o
+
+obj-$(CONFIG_SH_CLK_CPG)       += cpg.o
similarity index 99%
rename from drivers/sh/clk.c
rename to drivers/sh/clk/core.c
index dae64ee9ecc56620f1acb73a83d867b7ffbb36bb..fd0d1b98901c2a0c13cc925e078139be079d1f43 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * drivers/sh/clk.c - SuperH clock framework
+ * SuperH clock framework
  *
  *  Copyright (C) 2005 - 2010  Paul Mundt
  *
similarity index 96%
rename from drivers/sh/clk-cpg.c
rename to drivers/sh/clk/cpg.c
index 392627be4544482f63008f15bb53c509031d479a..3aea5f0ceb09ebd3f5e3b59ae5b04128862afc9c 100644 (file)
@@ -1,3 +1,12 @@
+/*
+ * Helper routines for SuperH Clock Pulse Generator blocks (CPG).
+ *
+ *  Copyright (C) 2010  Magnus Damm
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License.  See the file "COPYING" in the main directory of this archive
+ * for more details.
+ */
 #include <linux/clk.h>
 #include <linux/compiler.h>
 #include <linux/slab.h>