Commit 6a72015d authored by Ralf Baechle's avatar Ralf Baechle

MIPS: SNI: pcit: Fix build error with CONFIG_PCI=n disabled.

  CC      arch/mips/sni/pcit.o
arch/mips/sni/pcit.c:150:30: warning: ‘sni_pcit_controller’ defined but not used [-Wunused-variable]
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 5bd80765
...@@ -128,13 +128,6 @@ static struct resource pcit_io_resources[] = { ...@@ -128,13 +128,6 @@ static struct resource pcit_io_resources[] = {
} }
}; };
static struct resource sni_mem_resource = {
.start = 0x18000000UL,
.end = 0x1fbfffffUL,
.name = "PCIT PCI MEM",
.flags = IORESOURCE_MEM
};
static void __init sni_pcit_resource_init(void) static void __init sni_pcit_resource_init(void)
{ {
int i; int i;
...@@ -147,6 +140,14 @@ static void __init sni_pcit_resource_init(void) ...@@ -147,6 +140,14 @@ static void __init sni_pcit_resource_init(void)
extern struct pci_ops sni_pcit_ops; extern struct pci_ops sni_pcit_ops;
#ifdef CONFIG_PCI
static struct resource sni_mem_resource = {
.start = 0x18000000UL,
.end = 0x1fbfffffUL,
.name = "PCIT PCI MEM",
.flags = IORESOURCE_MEM
};
static struct pci_controller sni_pcit_controller = { static struct pci_controller sni_pcit_controller = {
.pci_ops = &sni_pcit_ops, .pci_ops = &sni_pcit_ops,
.mem_resource = &sni_mem_resource, .mem_resource = &sni_mem_resource,
...@@ -155,6 +156,7 @@ static struct pci_controller sni_pcit_controller = { ...@@ -155,6 +156,7 @@ static struct pci_controller sni_pcit_controller = {
.io_offset = 0x00000000UL, .io_offset = 0x00000000UL,
.io_map_base = SNI_PORT_BASE .io_map_base = SNI_PORT_BASE
}; };
#endif /* CONFIG_PCI */
static void enable_pcit_irq(struct irq_data *d) static void enable_pcit_irq(struct irq_data *d)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment