aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-04-08 20:02:27 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-04-08 20:02:27 +0000
commit73704a5703a66809b9e280791824a1a5147244e9 (patch)
tree49c96a4fcc1c8137b9351a7504651d669c4a4738 /target
parent62684a84719d520cd7a66273bb8767b8b94fc322 (diff)
downloadupstream-73704a5703a66809b9e280791824a1a5147244e9.tar.gz
upstream-73704a5703a66809b9e280791824a1a5147244e9.tar.bz2
upstream-73704a5703a66809b9e280791824a1a5147244e9.zip
Fix warnings
SVN-Revision: 6899
Diffstat (limited to 'target')
-rw-r--r--target/linux/brcm63xx-2.6/files/arch/mips/pci/pci-bcm96348.c38
1 files changed, 23 insertions, 15 deletions
diff --git a/target/linux/brcm63xx-2.6/files/arch/mips/pci/pci-bcm96348.c b/target/linux/brcm63xx-2.6/files/arch/mips/pci/pci-bcm96348.c
index 31e9d161ab..b477e827bd 100644
--- a/target/linux/brcm63xx-2.6/files/arch/mips/pci/pci-bcm96348.c
+++ b/target/linux/brcm63xx-2.6/files/arch/mips/pci/pci-bcm96348.c
@@ -21,34 +21,42 @@
#include <linux/kernel.h>
#include <linux/init.h>
-//#include <asm/pci_channel.h>
#include <bcmpci.h>
static struct resource bcm_pci_io_resource = {
- .name = "bcm96348 pci IO space",
- .start = BCM_PCI_IO_BASE,
- .end = BCM_PCI_IO_BASE + BCM_PCI_IO_SIZE_64KB - 1,
- .flags = IORESOURCE_IO
+ .name = "bcm96348 pci IO space",
+ .start = BCM_PCI_IO_BASE,
+ .end = BCM_PCI_IO_BASE + BCM_PCI_IO_SIZE_64KB - 1,
+ .flags = IORESOURCE_IO
};
static struct resource bcm_pci_mem_resource = {
- .name = "bcm96348 pci memory space",
- .start = BCM_PCI_MEM_BASE,
- .end = BCM_PCI_MEM_BASE + BCM_PCI_MEM_SIZE_16MB - 1,
- .flags = IORESOURCE_MEM
+ .name = "bcm96348 pci memory space",
+ .start = BCM_PCI_MEM_BASE,
+ .end = BCM_PCI_MEM_BASE + BCM_PCI_MEM_SIZE_16MB - 1,
+ .flags = IORESOURCE_MEM
};
extern struct pci_ops bcm96348_pci_ops;
struct pci_controller bcm96348_controller = {
- .pci_ops = &bcm96348_pci_ops,
- .io_resource = &bcm_pci_io_resource,
- .mem_resource = &bcm_pci_mem_resource,
+ .pci_ops = &bcm96348_pci_ops,
+ .io_resource = &bcm_pci_io_resource,
+ .mem_resource = &bcm_pci_mem_resource,
};
-static void bcm96348_pci_init(void)
+static __init int bcm96348_pci_init(void)
{
- register_pci_controller(&bcm96348_controller);
+ /* Avoid ISA compat ranges. */
+ PCIBIOS_MIN_IO = 0x00000000;
+ PCIBIOS_MIN_MEM = 0x00000000;
+
+ /* Set I/O resource limits. */
+ ioport_resource.end = 0x1fffffff;
+ iomem_resource.end = 0xffffffff;
+
+ register_pci_controller(&bcm96348_controller);
+ return 0;
}
-arch_initcall(bcm96348_pci_init);
+subsys_initcall(bcm96348_pci_init);