diff options
author | Ulrich Hecht <ulrich.hecht+renesas@gmail.com> | 2015-08-14 16:51:05 +0300 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2015-09-14 04:06:49 +0300 |
commit | 51e47a386f3ac1c3efd10505a7b190667bd4b731 (patch) | |
tree | 11ac7ddf31e982cb86b99da53f7130e198092d86 /arch/arm/mach-shmobile/clock.h | |
parent | 993f58c32c613b7155f3cab75ed4e2e6e6b3ec64 (diff) | |
download | linux-51e47a386f3ac1c3efd10505a7b190667bd4b731.tar.xz |
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.h | 42 |
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 cf3552ea1019..000000000000 --- 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 |