diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2014-10-26 09:07:32 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2014-10-29 21:14:57 -0400 |
commit | b6c461d2791ce738bf14fc796e65b9a00072de96 (patch) | |
tree | e9cdd7437973b0ad6680f01d67c41cc1c5901a35 | |
parent | 11886d1158e0dc123283891b662381f629ab47a0 (diff) |
ARM: shmobile: Remove shmobile_clk_workaround() implementation
The function isn't used or needed anymore, remove it.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r-- | arch/arm/mach-shmobile/Makefile | 2 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/clock.c | 32 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/clock.h | 14 |
3 files changed, 4 insertions, 44 deletions
diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index e20f2786ec72..dcb38d5258cf 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile | |||
@@ -19,8 +19,8 @@ obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o | |||
19 | obj-$(CONFIG_ARCH_R7S72100) += setup-r7s72100.o | 19 | obj-$(CONFIG_ARCH_R7S72100) += setup-r7s72100.o |
20 | 20 | ||
21 | # Clock objects | 21 | # Clock objects |
22 | obj-y += clock.o | ||
23 | ifndef CONFIG_COMMON_CLK | 22 | ifndef CONFIG_COMMON_CLK |
23 | obj-y += clock.o | ||
24 | obj-$(CONFIG_ARCH_SH7372) += clock-sh7372.o | 24 | obj-$(CONFIG_ARCH_SH7372) += clock-sh7372.o |
25 | obj-$(CONFIG_ARCH_SH73A0) += clock-sh73a0.o | 25 | obj-$(CONFIG_ARCH_SH73A0) += clock-sh73a0.o |
26 | obj-$(CONFIG_ARCH_R8A73A4) += clock-r8a73a4.o | 26 | obj-$(CONFIG_ARCH_R8A73A4) += clock-r8a73a4.o |
diff --git a/arch/arm/mach-shmobile/clock.c b/arch/arm/mach-shmobile/clock.c index 1f81ad747153..34f056fc3756 100644 --- a/arch/arm/mach-shmobile/clock.c +++ b/arch/arm/mach-shmobile/clock.c | |||
@@ -15,36 +15,12 @@ | |||
15 | * GNU General Public License for more details. | 15 | * GNU General Public License for more details. |
16 | * | 16 | * |
17 | */ | 17 | */ |
18 | |||
19 | #include <linux/export.h> | ||
18 | #include <linux/kernel.h> | 20 | #include <linux/kernel.h> |
19 | #include <linux/init.h> | 21 | #include <linux/init.h> |
20 | |||
21 | #ifdef CONFIG_COMMON_CLK | ||
22 | #include <linux/clk.h> | ||
23 | #include <linux/clkdev.h> | ||
24 | #include "clock.h" | ||
25 | |||
26 | void __init shmobile_clk_workaround(const struct clk_name *clks, | ||
27 | int nr_clks, bool enable) | ||
28 | { | ||
29 | const struct clk_name *clkn; | ||
30 | struct clk *clk; | ||
31 | unsigned int i; | ||
32 | |||
33 | for (i = 0; i < nr_clks; ++i) { | ||
34 | clkn = clks + i; | ||
35 | clk = clk_get(NULL, clkn->clk); | ||
36 | if (!IS_ERR(clk)) { | ||
37 | clk_register_clkdev(clk, clkn->con_id, clkn->dev_id); | ||
38 | if (enable) | ||
39 | clk_prepare_enable(clk); | ||
40 | clk_put(clk); | ||
41 | } | ||
42 | } | ||
43 | } | ||
44 | |||
45 | #else /* CONFIG_COMMON_CLK */ | ||
46 | #include <linux/sh_clk.h> | 22 | #include <linux/sh_clk.h> |
47 | #include <linux/export.h> | 23 | |
48 | #include "clock.h" | 24 | #include "clock.h" |
49 | #include "common.h" | 25 | #include "common.h" |
50 | 26 | ||
@@ -80,5 +56,3 @@ void __clk_put(struct clk *clk) | |||
80 | { | 56 | { |
81 | } | 57 | } |
82 | EXPORT_SYMBOL(__clk_put); | 58 | EXPORT_SYMBOL(__clk_put); |
83 | |||
84 | #endif /* CONFIG_COMMON_CLK */ | ||
diff --git a/arch/arm/mach-shmobile/clock.h b/arch/arm/mach-shmobile/clock.h index 31b6417463e6..cf3552ea1019 100644 --- a/arch/arm/mach-shmobile/clock.h +++ b/arch/arm/mach-shmobile/clock.h | |||
@@ -1,19 +1,6 @@ | |||
1 | #ifndef CLOCK_H | 1 | #ifndef CLOCK_H |
2 | #define CLOCK_H | 2 | #define CLOCK_H |
3 | 3 | ||
4 | #ifdef CONFIG_COMMON_CLK | ||
5 | /* temporary clock configuration helper for platform devices */ | ||
6 | |||
7 | struct clk_name { | ||
8 | const char *clk; | ||
9 | const char *con_id; | ||
10 | const char *dev_id; | ||
11 | }; | ||
12 | |||
13 | void shmobile_clk_workaround(const struct clk_name *clks, int nr_clks, | ||
14 | bool enable); | ||
15 | |||
16 | #else /* CONFIG_COMMON_CLK */ | ||
17 | /* legacy clock implementation */ | 4 | /* legacy clock implementation */ |
18 | 5 | ||
19 | struct clk; | 6 | struct clk; |
@@ -52,5 +39,4 @@ do { \ | |||
52 | (p)->div = d; \ | 39 | (p)->div = d; \ |
53 | } while (0) | 40 | } while (0) |
54 | 41 | ||
55 | #endif /* CONFIG_COMMON_CLK */ | ||
56 | #endif | 42 | #endif |