linux-mips
[Top] [All Lists]

[PATCH 2/3] ar7: remove unused tnetd7200_get_clock function

To: linux-mips@linux-mips.org
Subject: [PATCH 2/3] ar7: remove unused tnetd7200_get_clock function
From: Florian Fainelli <florian@openwrt.org>
Date: Fri, 24 Jul 2009 13:18:42 +0200
Cc: Ralf Baechle <ralf@linux-mips.org>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:date:subject :mime-version:x-uid:x-length:to:cc:content-type :content-transfer-encoding:content-disposition:message-id; bh=BXuuLo5xG6SZf1FdoKS3TY7MhzDT1UnnFNRXarPEGl0=; b=xc//dXnvJtNHyQYKnmCj0QGUwWehuWdp2yvNboeSh2putblVGpS7MbGZVb+6Rj36I0 w7Wc0BidWQQBHBFP0dI79UFwEkzRbuHP4Z4GhDDGcE+KsVt7++deR4RAVYF+pZYToYx3 NaufJu9SUJ0LjQdNhgN0QiQl92rhiQxjtql4g=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:date:subject:mime-version:x-uid:x-length:to:cc :content-type:content-transfer-encoding:content-disposition :message-id; b=QQDNGhYe1pzaTIpWow+AOflbVCK3lKK9xmuLk/OAPDpBAgLNEuIcmCZygU/RqsD0AU rh6RA+eNlugXy4a5foossjW5s0+3QGvHsVmUkkKKtd4mMVoXd1L3xPz7Bl52RaJsIoNl Kd0R8ctOtYH+yM9LVJgmKgYuKCGhfOwk5irDw=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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)
 {

<Prev in Thread] Current Thread [Next in Thread>