Received: from mail.onstor.com (66.201.51.107) by exch1.onstor.net
 (10.0.0.225) with Microsoft SMTP Server id 8.1.311.2; Sun, 21 Dec 2008
 00:28:53 -0800
Received: from ausesmta2-2.messageone.com ([64.20.241.45]) by mail.onstor.com
 with Microsoft SMTPSVC(6.0.3790.3959);	 Sun, 21 Dec 2008 00:28:53 -0800
Received: from ftp.linux-mips.org (ftp.linux-mips.org [213.58.128.207])	by
 ausesmta2-2.messageone.com (8.13.8/8.13.8) with ESMTP id mBL8SqXT031973	for
 <andy.sharp@onstor.com>; Sun, 21 Dec 2008 02:28:52 -0600
Received: from localhost.localdomain ([127.0.0.1]:51626 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP	id S24197166AbYLUI2o
 (ORCPT <rfc822;andy.sharp@onstor.com>);	Sun, 21 Dec 2008 08:28:44 +0000
Received: with ECARTIS (v1.0.0; list linux-mips); Sun, 21 Dec 2008 08:28:27
 +0000 (GMT)
Received: from fnoeppeil48.netpark.at ([217.175.205.176]:13012 "EHLO
	roarinelk.homelinux.net") by ftp.linux-mips.org with ESMTP	id
 S24049148AbYLUI0a (ORCPT <rfc822;linux-mips@linux-mips.org>);	Sun, 21 Dec
 2008 08:26:30 +0000
Received: (qmail 3966 invoked from network); 21 Dec 2008 09:24:58 +0100
Received: from scarran.roarinelk.net (HELO localhost.localdomain)
 (192.168.0.242)  by 192.168.0.1 with SMTP; 21 Dec 2008 09:24:58 +0100
From: Manuel Lauss <mano@roarinelk.homelinux.net>
To: Linux-MIPS <linux-mips@linux-mips.org>
CC: Manuel Lauss <mano@roarinelk.homelinux.net>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Sun, 21 Dec 2008 00:26:20 -0800
Subject: [PATCH 07/14] Alchemy: remove get/set_au1x00_lcd_clock().
Thread-Topic: [PATCH 07/14] Alchemy: remove get/set_au1x00_lcd_clock().
Thread-Index: AcljRiiszYqitd+1QmuMC4l25Nx8LQ==
Message-ID:
 <ad6889e72585d9fa5bedeb080d6d78d91c9e23c9.1229846414.git.mano@roarinelk.homelinux.net>
References: <cover.1229846410.git.mano@roarinelk.homelinux.net>
In-Reply-To: <cover.1229846410.git.mano@roarinelk.homelinux.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 0b
X-MS-Exchange-Organization-AuthSource: exch1.onstor.net
X-MS-Has-Attach:
X-Auto-Response-Suppress: All
X-MS-TNEF-Correlator:
x-originalarrivaltime: 21 Dec 2008 08:28:53.0137 (UTC)
 FILETIME=[2846F810:01C96346]
errors-to: linux-mips-bounce@linux-mips.org
x-ems-proccessed: 2K3Xl1OQTInXD6xxuA8z3Q==
x-ems-stamp: EeT/9q9bynAgjNTdqxNUxQ==
x-messageone-virus-version: vendor=fsecure
 engine=4.65.7400:2.4.4,1.2.40,4.0.164
 definitions=2008-12-21_01:2008-12-18,2008-12-21,2008-12-20 signatures=0
x-messageone-virus-scanned: Clean
x-messageone-envelope-sender: linux-mips-bounce@linux-mips.org
x-messageone-spam-details: rule=m773emszm_notspam policy=m773emszm score=0
 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam
 adjust=0 reason=mlx engine=3.1.0-0810130000 definitions=main-0812200189
x-messageone-spam-score: 0
x-messageone-spam-bar:
x-list: linux-mips
x-archive-position: 21640
x-ecartis-version: Ecartis v1.0.0
x-original-sender: mano@roarinelk.homelinux.net
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

There are no in-tree users, so remove them.

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
---
 arch/mips/alchemy/common/clocks.c          |   31 ------------------------=
----
 arch/mips/alchemy/common/time.c            |    1 -
 arch/mips/include/asm/mach-au1x00/au1000.h |    2 -
 3 files changed, 0 insertions(+), 34 deletions(-)

diff --git a/arch/mips/alchemy/common/clocks.c b/arch/mips/alchemy/common/c=
locks.c
index 043429d..a8170fd 100644
--- a/arch/mips/alchemy/common/clocks.c
+++ b/arch/mips/alchemy/common/clocks.c
@@ -30,7 +30,6 @@
 #include <asm/mach-au1x00/au1000.h>
=20
 static unsigned int au1x00_clock; /*  Hz */
-static unsigned int lcd_clock;    /* KHz */
 static unsigned long uart_baud_base;
=20
 /*
@@ -61,33 +60,3 @@ void set_au1x00_uart_baud_base(unsigned long new_baud_ba=
se)
 {
 	uart_baud_base =3D new_baud_base;
 }
-
-/*
- * Calculate the Au1x00's LCD clock based on the current
- * cpu clock and the system bus clock, and try to keep it
- * below 40 MHz (the Pb1000 board can lock-up if the LCD
- * clock is over 40 MHz).
- */
-void set_au1x00_lcd_clock(void)
-{
-	unsigned int static_cfg0;
-	unsigned int sys_busclk =3D (get_au1x00_speed() / 1000) /
-				  ((int)(au_readl(SYS_POWERCTRL) & 0x03) + 2);
-
-	static_cfg0 =3D au_readl(MEM_STCFG0);
-
-	if (static_cfg0 & (1 << 11))
-		lcd_clock =3D sys_busclk / 5; /* note: BCLK switching fails with D5 */
-	else
-		lcd_clock =3D sys_busclk / 4;
-
-	if (lcd_clock > 50000) /* Epson MAX */
-		printk(KERN_WARNING "warning: LCD clock too high (%u KHz)\n",
-				    lcd_clock);
-}
-
-unsigned int get_au1x00_lcd_clock(void)
-{
-	return lcd_clock;
-}
-EXPORT_SYMBOL(get_au1x00_lcd_clock);
diff --git a/arch/mips/alchemy/common/time.c b/arch/mips/alchemy/common/tim=
e.c
index 563d939..68d7142 100644
--- a/arch/mips/alchemy/common/time.c
+++ b/arch/mips/alchemy/common/time.c
@@ -224,7 +224,6 @@ void __init plat_time_init(void)
 	printk(KERN_INFO "CPU frequency %u.%02u MHz\n",
 	       est_freq / 1000000, ((est_freq % 1000000) * 100) / 1000000);
 	set_au1x00_speed(est_freq);
-	set_au1x00_lcd_clock(); /* program the LCD clock */
=20
 #ifdef CONFIG_PM
 	/*
diff --git a/arch/mips/include/asm/mach-au1x00/au1000.h b/arch/mips/include=
/asm/mach-au1x00/au1000.h
index a7ba352..d07632e 100644
--- a/arch/mips/include/asm/mach-au1x00/au1000.h
+++ b/arch/mips/include/asm/mach-au1x00/au1000.h
@@ -97,8 +97,6 @@ extern void set_au1x00_speed(unsigned int new_freq);
 extern unsigned int get_au1x00_speed(void);
 extern void set_au1x00_uart_baud_base(unsigned long new_baud_base);
 extern unsigned long get_au1x00_uart_baud_base(void);
-extern void set_au1x00_lcd_clock(void);
-extern unsigned int get_au1x00_lcd_clock(void);
=20
 /*
  * Every board describes its IRQ mapping with this table.
--=20
1.6.0.4


