linux-mips
[Top] [All Lists]

[PATCH 3/4] MIPS: lantiq: cleanup machine specific files

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH 3/4] MIPS: lantiq: cleanup machine specific files
From: John Crispin <blogic@openwrt.org>
Date: Mon, 9 May 2011 18:49:09 +0200
Cc: John Crispin <blogic@openwrt.org>, linux-mips@linux-mips.org
In-reply-to: <1304959750-8557-1-git-send-email-blogic@openwrt.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1304959750-8557-1-git-send-email-blogic@openwrt.org>
Sender: linux-mips-bounce@linux-mips.org
The platform driver register functions called in every machine init function
get moved to setup-<SOC>.c. Also remove superflous pci register call from
Amazon SE machine code as the device and driver are not present on ASE.

Signed-off-by: John Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
---
 arch/mips/lantiq/xway/mach-easy50601.c |    8 --------
 arch/mips/lantiq/xway/mach-easy50712.c |    2 --
 2 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/arch/mips/lantiq/xway/mach-easy50601.c 
b/arch/mips/lantiq/xway/mach-easy50601.c
index 34a41d9..0002128 100644
--- a/arch/mips/lantiq/xway/mach-easy50601.c
+++ b/arch/mips/lantiq/xway/mach-easy50601.c
@@ -50,17 +50,9 @@ static struct physmap_flash_data easy50601_flash_data = {
 #endif
 };
 
-static struct ltq_pci_data ltq_pci_data = {
-       .clock          = PCI_CLOCK_INT,
-       .req_mask       = 0xf,
-};
-
 static void __init easy50601_init(void)
 {
-       ltq_register_gpio();
        ltq_register_nor(&easy50601_flash_data);
-       ltq_register_wdt();
-       ltq_register_pci(&ltq_pci_data);
 }
 
 MIPS_MACHINE(LTQ_MACH_EASY50601,
diff --git a/arch/mips/lantiq/xway/mach-easy50712.c 
b/arch/mips/lantiq/xway/mach-easy50712.c
index 0cbb30b..2512561 100644
--- a/arch/mips/lantiq/xway/mach-easy50712.c
+++ b/arch/mips/lantiq/xway/mach-easy50712.c
@@ -65,10 +65,8 @@ static struct ltq_eth_data ltq_eth_data = {
 
 static void __init easy50712_init(void)
 {
-       ltq_register_gpio();
        ltq_register_gpio_stp();
        ltq_register_nor(&easy50712_flash_data);
-       ltq_register_wdt();
        ltq_register_pci(&ltq_pci_data);
        ltq_register_etop(&ltq_eth_data);
 }
-- 
1.7.2.3


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