* [PATCH 2/3] ar7: remove unused tnetd7200_get_clock function
@ 2009-07-24 11:18 Florian Fainelli
2009-07-29 23:40 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Florian Fainelli @ 2009-07-24 11:18 UTC (permalink / raw)
To: linux-mips; +Cc: Ralf Baechle
This patch removes the unused tnetd7200_get_clock function.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
diff --git a/arch/mips/ar7/clock.c b/arch/mips/ar7/clock.c
index b8c7c84..3a124f1 100644
--- a/arch/mips/ar7/clock.c
+++ b/arch/mips/ar7/clock.c
@@ -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)
{
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 2/3] ar7: remove unused tnetd7200_get_clock function
2009-07-24 11:18 [PATCH 2/3] ar7: remove unused tnetd7200_get_clock function Florian Fainelli
@ 2009-07-29 23:40 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2009-07-29 23:40 UTC (permalink / raw)
To: Florian Fainelli; +Cc: linux-mips
Applied. Thanks!
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-29 23:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-24 11:18 [PATCH 2/3] ar7: remove unused tnetd7200_get_clock function Florian Fainelli
2009-07-29 23:40 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).