Skip to content

Commit

Permalink
sh: clkfwk: Shuffle around to match the intc split up.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Oct 18, 2010
1 parent c2590f4 commit de9186c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
7 changes: 3 additions & 4 deletions drivers/sh/Makefile
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions drivers/sh/clk/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
obj-y := core.o

obj-$(CONFIG_SH_CLK_CPG) += cpg.o
2 changes: 1 addition & 1 deletion drivers/sh/clk.c → drivers/sh/clk/core.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* drivers/sh/clk.c - SuperH clock framework
* SuperH clock framework
*
* Copyright (C) 2005 - 2010 Paul Mundt
*
Expand Down
9 changes: 9 additions & 0 deletions drivers/sh/clk-cpg.c → drivers/sh/clk/cpg.c
Original file line number Diff line number Diff line change
@@ -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>
Expand Down

0 comments on commit de9186c

Please sign in to comment.