aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/sh4a/clock-sh7722.c
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2008-10-31 07:24:01 -0400
committerPaul Mundt <lethal@linux-sh.org>2008-12-22 04:42:52 -0500
commitef6aff6884408db95ceb0f678f583536e0bd48f8 (patch)
tree2095f8513e56dd0ae19216cab6c3dad4949e5823 /arch/sh/kernel/cpu/sh4a/clock-sh7722.c
parentb51339fff240ff179730f8963a758147fd60f3ec (diff)
sh: remove old sh_mobile mstpc clocks
Remove the old sh_mobile mstpcr clocks. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh4a/clock-sh7722.c')
-rw-r--r--arch/sh/kernel/cpu/sh4a/clock-sh7722.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7722.c b/arch/sh/kernel/cpu/sh4a/clock-sh7722.c
index fc69e18ddd63..83b69196bc1a 100644
--- a/arch/sh/kernel/cpu/sh4a/clock-sh7722.c
+++ b/arch/sh/kernel/cpu/sh4a/clock-sh7722.c
@@ -632,53 +632,6 @@ static struct clk_ops sh7722_mstpcr_clk_ops = {
632 .recalc = sh7722_mstpcr_recalc, 632 .recalc = sh7722_mstpcr_recalc,
633}; 633};
634 634
635#define DECLARE_MSTPCRN(regnr, bitnr, bitstr) \
636{ \
637 .name = "mstp" __stringify(regnr) bitstr, \
638 .arch_flags = MSTPCR_ARCH_FLAGS(regnr, bitnr), \
639 .ops = &sh7722_mstpcr_clk_ops, \
640}
641
642#define DECLARE_MSTPCR(regnr) \
643 DECLARE_MSTPCRN(regnr, 31, "31"), \
644 DECLARE_MSTPCRN(regnr, 30, "30"), \
645 DECLARE_MSTPCRN(regnr, 29, "29"), \
646 DECLARE_MSTPCRN(regnr, 28, "28"), \
647 DECLARE_MSTPCRN(regnr, 27, "27"), \
648 DECLARE_MSTPCRN(regnr, 26, "26"), \
649 DECLARE_MSTPCRN(regnr, 25, "25"), \
650 DECLARE_MSTPCRN(regnr, 24, "24"), \
651 DECLARE_MSTPCRN(regnr, 23, "23"), \
652 DECLARE_MSTPCRN(regnr, 22, "22"), \
653 DECLARE_MSTPCRN(regnr, 21, "21"), \
654 DECLARE_MSTPCRN(regnr, 20, "20"), \
655 DECLARE_MSTPCRN(regnr, 19, "19"), \
656 DECLARE_MSTPCRN(regnr, 18, "18"), \
657 DECLARE_MSTPCRN(regnr, 17, "17"), \
658 DECLARE_MSTPCRN(regnr, 16, "16"), \
659 DECLARE_MSTPCRN(regnr, 15, "15"), \
660 DECLARE_MSTPCRN(regnr, 14, "14"), \
661 DECLARE_MSTPCRN(regnr, 13, "13"), \
662 DECLARE_MSTPCRN(regnr, 12, "12"), \
663 DECLARE_MSTPCRN(regnr, 11, "11"), \
664 DECLARE_MSTPCRN(regnr, 10, "10"), \
665 DECLARE_MSTPCRN(regnr, 9, "09"), \
666 DECLARE_MSTPCRN(regnr, 8, "08"), \
667 DECLARE_MSTPCRN(regnr, 7, "07"), \
668 DECLARE_MSTPCRN(regnr, 6, "06"), \
669 DECLARE_MSTPCRN(regnr, 5, "05"), \
670 DECLARE_MSTPCRN(regnr, 4, "04"), \
671 DECLARE_MSTPCRN(regnr, 3, "03"), \
672 DECLARE_MSTPCRN(regnr, 2, "02"), \
673 DECLARE_MSTPCRN(regnr, 1, "01"), \
674 DECLARE_MSTPCRN(regnr, 0, "00")
675
676static struct clk sh7722_mstpcr[] = {
677 DECLARE_MSTPCR(0),
678 DECLARE_MSTPCR(1),
679 DECLARE_MSTPCR(2),
680};
681
682#define MSTPCR(_name, _parent, regnr, bitnr) \ 635#define MSTPCR(_name, _parent, regnr, bitnr) \
683{ \ 636{ \
684 .name = _name, \ 637 .name = _name, \
@@ -885,10 +838,5 @@ int __init arch_clk_init(void)
885 clk_put(clk); 838 clk_put(clk);
886 } 839 }
887 840
888 for (i = 0; i < ARRAY_SIZE(sh7722_mstpcr); i++) {
889 pr_debug( "Registering mstpcr '%s'\n", sh7722_mstpcr[i].name);
890 clk_register(&sh7722_mstpcr[i]);
891 }
892
893 return 0; 841 return 0;
894} 842}