summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/clock.h
diff options
context:
space:
mode:
authorUlrich Hecht <ulrich.hecht+renesas@gmail.com>2015-08-14 15:51:05 +0200
committerSimon Horman <horms+renesas@verge.net.au>2015-09-14 10:06:49 +0900
commit51e47a386f3ac1c3efd10505a7b190667bd4b731 (patch)
tree11ac7ddf31e982cb86b99da53f7130e198092d86 /arch/arm/mach-shmobile/clock.h
parent993f58c32c613b7155f3cab75ed4e2e6e6b3ec64 (diff)
downloadop-kernel-dev-51e47a386f3ac1c3efd10505a7b190667bd4b731.zip
op-kernel-dev-51e47a386f3ac1c3efd10505a7b190667bd4b731.tar.gz
ARM: shmobile: r8a7778: remove legacy clock implementation
Bock-W was the last legacy clock platform, so this also removes the common legacy clock code. Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Acked-by: by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/clock.h')
-rw-r--r--arch/arm/mach-shmobile/clock.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/arch/arm/mach-shmobile/clock.h b/arch/arm/mach-shmobile/clock.h
deleted file mode 100644
index cf3552e..0000000
--- a/arch/arm/mach-shmobile/clock.h
+++ /dev/null
@@ -1,42 +0,0 @@
-#ifndef CLOCK_H
-#define CLOCK_H
-
-/* legacy clock implementation */
-
-struct clk;
-unsigned long shmobile_fixed_ratio_clk_recalc(struct clk *clk);
-extern struct sh_clk_ops shmobile_fixed_ratio_clk_ops;
-
-/* clock ratio */
-struct clk_ratio {
- int mul;
- int div;
-};
-
-#define SH_CLK_RATIO(name, m, d) \
-static struct clk_ratio name ##_ratio = { \
- .mul = m, \
- .div = d, \
-}
-
-#define SH_FIXED_RATIO_CLKg(name, p, r) \
-struct clk name = { \
- .parent = &p, \
- .ops = &shmobile_fixed_ratio_clk_ops,\
- .priv = &r ## _ratio, \
-}
-
-#define SH_FIXED_RATIO_CLK(name, p, r) \
-static SH_FIXED_RATIO_CLKg(name, p, r)
-
-#define SH_FIXED_RATIO_CLK_SET(name, p, m, d) \
- SH_CLK_RATIO(name, m, d); \
- SH_FIXED_RATIO_CLK(name, p, name)
-
-#define SH_CLK_SET_RATIO(p, m, d) \
-do { \
- (p)->mul = m; \
- (p)->div = d; \
-} while (0)
-
-#endif
OpenPOWER on IntegriCloud