MIPS: AR7: Remove unused tnetd7200_get_clock function
authorFlorian Fainelli <florian@openwrt.org>
Fri, 24 Jul 2009 11:18:42 +0000 (13:18 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 3 Aug 2009 16:52:45 +0000 (17:52 +0100)
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/ar7/clock.c

index 27dc666..cc65c8e 100644 (file)
@@ -264,19 +264,6 @@ static void __init tnetd7300_init_clocks(void)
        iounmap(bootcr);
 }
 
-static int tnetd7200_get_clock(int base, struct tnetd7200_clock *clock,
-       u32 *bootcr, u32 bus_clock)
-{
-       int divisor = ((readl(&clock->prediv) & 0x1f) + 1) *
-               ((readl(&clock->postdiv) & 0x1f) + 1);
-
-       if (*bootcr & BOOT_PLL_BYPASS)
-               return base / divisor;
-
-       return base * ((readl(&clock->mul) & 0xf) + 1) / divisor;
-}
-
-
 static void tnetd7200_set_clock(int base, struct tnetd7200_clock *clock,
        int prediv, int postdiv, int postdiv2, int mul, u32 frequency)
 {