aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ixp2000
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-ixp2000')
-rw-r--r--arch/arm/mach-ixp2000/include/mach/entry-macro.S6
-rw-r--r--arch/arm/mach-ixp2000/include/mach/system.h14
-rw-r--r--arch/arm/mach-ixp2000/ixdp2400.c4
-rw-r--r--arch/arm/mach-ixp2000/ixdp2800.c4
-rw-r--r--arch/arm/mach-ixp2000/ixdp2x00.c4
-rw-r--r--arch/arm/mach-ixp2000/pci.c6
6 files changed, 10 insertions, 28 deletions
diff --git a/arch/arm/mach-ixp2000/include/mach/entry-macro.S b/arch/arm/mach-ixp2000/include/mach/entry-macro.S
index 5850ffc8c751..c4444dff9202 100644
--- a/arch/arm/mach-ixp2000/include/mach/entry-macro.S
+++ b/arch/arm/mach-ixp2000/include/mach/entry-macro.S
@@ -9,15 +9,9 @@
9 */ 9 */
10#include <mach/irqs.h> 10#include <mach/irqs.h>
11 11
12 .macro disable_fiq
13 .endm
14
15 .macro get_irqnr_preamble, base, tmp 12 .macro get_irqnr_preamble, base, tmp
16 .endm 13 .endm
17 14
18 .macro arch_ret_to_user, tmp1, tmp2
19 .endm
20
21 .macro get_irqnr_and_base, irqnr, irqstat, base, tmp 15 .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
22 16
23 mov \irqnr, #0x0 @clear out irqnr as default 17 mov \irqnr, #0x0 @clear out irqnr as default
diff --git a/arch/arm/mach-ixp2000/include/mach/system.h b/arch/arm/mach-ixp2000/include/mach/system.h
deleted file mode 100644
index a7fb08b2b8e7..000000000000
--- a/arch/arm/mach-ixp2000/include/mach/system.h
+++ /dev/null
@@ -1,14 +0,0 @@
1/*
2 * arch/arm/mach-ixp2000/include/mach/system.h
3 *
4 * Copyright (C) 2002 Intel Corp.
5 * Copyricht (C) 2003-2005 MontaVista Software, Inc.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11static inline void arch_idle(void)
12{
13 cpu_do_idle();
14}
diff --git a/arch/arm/mach-ixp2000/ixdp2400.c b/arch/arm/mach-ixp2000/ixdp2400.c
index 558f5f81f029..915ad49e3b8f 100644
--- a/arch/arm/mach-ixp2000/ixdp2400.c
+++ b/arch/arm/mach-ixp2000/ixdp2400.c
@@ -133,11 +133,11 @@ static void ixdp2400_pci_postinit(void)
133 133
134 if (ixdp2x00_master_npu()) { 134 if (ixdp2x00_master_npu()) {
135 dev = pci_get_bus_and_slot(1, IXDP2400_SLAVE_ENET_DEVFN); 135 dev = pci_get_bus_and_slot(1, IXDP2400_SLAVE_ENET_DEVFN);
136 pci_remove_bus_device(dev); 136 pci_stop_and_remove_bus_device(dev);
137 pci_dev_put(dev); 137 pci_dev_put(dev);
138 } else { 138 } else {
139 dev = pci_get_bus_and_slot(1, IXDP2400_MASTER_ENET_DEVFN); 139 dev = pci_get_bus_and_slot(1, IXDP2400_MASTER_ENET_DEVFN);
140 pci_remove_bus_device(dev); 140 pci_stop_and_remove_bus_device(dev);
141 pci_dev_put(dev); 141 pci_dev_put(dev);
142 142
143 ixdp2x00_slave_pci_postinit(); 143 ixdp2x00_slave_pci_postinit();
diff --git a/arch/arm/mach-ixp2000/ixdp2800.c b/arch/arm/mach-ixp2000/ixdp2800.c
index 33c6d5f3fda3..a9f1819ea049 100644
--- a/arch/arm/mach-ixp2000/ixdp2800.c
+++ b/arch/arm/mach-ixp2000/ixdp2800.c
@@ -261,14 +261,14 @@ int __init ixdp2800_pci_init(void)
261 pci_common_init(&ixdp2800_pci); 261 pci_common_init(&ixdp2800_pci);
262 if (ixdp2x00_master_npu()) { 262 if (ixdp2x00_master_npu()) {
263 dev = pci_get_bus_and_slot(1, IXDP2800_SLAVE_ENET_DEVFN); 263 dev = pci_get_bus_and_slot(1, IXDP2800_SLAVE_ENET_DEVFN);
264 pci_remove_bus_device(dev); 264 pci_stop_and_remove_bus_device(dev);
265 pci_dev_put(dev); 265 pci_dev_put(dev);
266 266
267 ixdp2800_master_enable_slave(); 267 ixdp2800_master_enable_slave();
268 ixdp2800_master_wait_for_slave_bus_scan(); 268 ixdp2800_master_wait_for_slave_bus_scan();
269 } else { 269 } else {
270 dev = pci_get_bus_and_slot(1, IXDP2800_MASTER_ENET_DEVFN); 270 dev = pci_get_bus_and_slot(1, IXDP2800_MASTER_ENET_DEVFN);
271 pci_remove_bus_device(dev); 271 pci_stop_and_remove_bus_device(dev);
272 pci_dev_put(dev); 272 pci_dev_put(dev);
273 } 273 }
274 } 274 }
diff --git a/arch/arm/mach-ixp2000/ixdp2x00.c b/arch/arm/mach-ixp2000/ixdp2x00.c
index 910426a6ffdb..421e38dc0fac 100644
--- a/arch/arm/mach-ixp2000/ixdp2x00.c
+++ b/arch/arm/mach-ixp2000/ixdp2x00.c
@@ -238,12 +238,12 @@ void ixdp2x00_slave_pci_postinit(void)
238 * Remove PMC device is there is one 238 * Remove PMC device is there is one
239 */ 239 */
240 if((dev = pci_get_bus_and_slot(1, IXDP2X00_PMC_DEVFN))) { 240 if((dev = pci_get_bus_and_slot(1, IXDP2X00_PMC_DEVFN))) {
241 pci_remove_bus_device(dev); 241 pci_stop_and_remove_bus_device(dev);
242 pci_dev_put(dev); 242 pci_dev_put(dev);
243 } 243 }
244 244
245 dev = pci_get_bus_and_slot(0, IXDP2X00_21555_DEVFN); 245 dev = pci_get_bus_and_slot(0, IXDP2X00_21555_DEVFN);
246 pci_remove_bus_device(dev); 246 pci_stop_and_remove_bus_device(dev);
247 pci_dev_put(dev); 247 pci_dev_put(dev);
248} 248}
249 249
diff --git a/arch/arm/mach-ixp2000/pci.c b/arch/arm/mach-ixp2000/pci.c
index 7e9a1f31a835..9c02de932fac 100644
--- a/arch/arm/mach-ixp2000/pci.c
+++ b/arch/arm/mach-ixp2000/pci.c
@@ -242,8 +242,10 @@ int ixp2000_pci_setup(int nr, struct pci_sys_data *sys)
242 if (nr >= 1) 242 if (nr >= 1)
243 return 0; 243 return 0;
244 244
245 pci_add_resource(&sys->resources, &ixp2000_pci_io_space); 245 pci_add_resource_offset(&sys->resources,
246 pci_add_resource(&sys->resources, &ixp2000_pci_mem_space); 246 &ixp2000_pci_io_space, sys->io_offset);
247 pci_add_resource_offset(&sys->resources,
248 &ixp2000_pci_mem_space, sys->mem_offset);
247 249
248 return 1; 250 return 1;
249} 251}